Commit graph

35823 commits

Author SHA1 Message Date
Shariq Ansari
c8b04f4370
Merge branch 'frappe:develop' into revert-single-scrollbar-pr 2021-10-18 19:24:20 +05:30
Shariq Ansari
080f29ab01
Merge branch 'frappe:develop' into list-check-all-fix 2021-10-18 19:23:57 +05:30
Pruthvi Patel
3cec476cbc fix: add whitespace 2021-10-18 19:07:13 +05:30
mergify[bot]
4e92a71791
Merge pull request #14483 from resilient-tech/role-profile-permlevel
fix: set missing `permlevel` for Role Profile
2021-10-18 13:00:44 +00:00
Pruthvi Patel
d99403393a fix: rename auto-reload to live-reload 2021-10-18 17:52:33 +05:30
Sagar Vora
c56ded1c4b fix: set missing permlevel for Role Profile 2021-10-18 16:58:37 +05:30
Sagar Vora
c560d67a57 fix: remove/update older whitelist calls 2021-10-18 16:47:11 +05:30
abhishek
236c84ab8b feat: semgrep rule for db.sql 2021-10-18 16:35:13 +05:30
gavin
51ce9f5832
Merge pull request #14444 from NagariaHussain/chore-try-on-fc-button
chore: Try on FCloud button in README
2021-10-18 14:08:56 +05:30
Suraj Shetty
def460715e
Merge pull request #14478 from surajshetty3416/fix-listview-printformat 2021-10-18 13:58:27 +05:30
Suraj Shetty
0bff45add2
Merge branch 'frappe:develop' into fix-listview-printformat 2021-10-18 13:54:18 +05:30
Suraj Shetty
c624b54eca fix: Set limit_page_length to get all letterhead
`limit` is not a valid argument for `frappe.client.get_list`
2021-10-18 13:54:00 +05:30
Summayya Hashmani
20d7a9df78
feat: Add confirm password field (#14281)
* fix: remove commented code

* refactor: add confirm password field

* fix: remove dialog and add inline warning

* fix: capitalize words and text function

* fix: capitalize words

* style: Fix formatting

* refactor:update class name

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>

* refactor: remove indicator class and add margin

Co-authored-by: Summayya <frappe@Summayyas-MacBook-Air.local>
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-10-18 08:02:35 +00:00
Suraj Shetty
202d94715f
Merge pull request #14476 from surajshetty3416/fix-auto-email-report-download 2021-10-18 12:39:11 +05:30
gavin
8980e733c1
Merge pull request #14475 from gavindsouza/misc-fixes-2
fix: Remove unnecessary missing_ok kwarg from unlink
2021-10-18 12:36:49 +05:30
Manuel
bb4abb4633
Merge branch 'frappe:develop' into multiple_imap_folder 2021-10-18 08:50:33 +02:00
Suraj Shetty
5c5c176872 fix: Check if parent exist in col before getting doc
This fixes following error while downloading auto email report

```
Traceback (most recent call last):
  File "/Users/sps/benches/develop/apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "/Users/sps/benches/develop/apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "/Users/sps/benches/develop/apps/frappe/frappe/handler.py", line 31, in handle
    data = execute_cmd(cmd)
  File "/Users/sps/benches/develop/apps/frappe/frappe/handler.py", line 67, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/Users/sps/benches/develop/apps/frappe/frappe/__init__.py", line 1205, in call
    return fn(*args, **newargs)
  File "/Users/sps/benches/develop/apps/frappe/frappe/email/doctype/auto_email_report/auto_email_report.py", line 196, in download
    data = auto_email_report.get_report_content()
  File "/Users/sps/benches/develop/apps/frappe/frappe/email/doctype/auto_email_report/auto_email_report.py", line 98, in get_report_content
    columns, data = make_links(columns, data)
  File "/Users/sps/benches/develop/apps/frappe/frappe/email/doctype/auto_email_report/auto_email_report.py", line 253, in make_links
    doc = frappe.get_doc(col.parent, doc_name) if doc_name else None
  File "/Users/sps/benches/develop/apps/frappe/frappe/__init__.py", line 883, in get_doc
    doc = frappe.model.document.get_doc(*args, **kwargs)
  File "/Users/sps/benches/develop/apps/frappe/frappe/model/document.py", line 62, in get_doc
    raise ValueError('First non keyword argument must be a string or dict')
ValueError: First non keyword argument must be a string or dict
```

The issue was introduced via https://github.com/frappe/frappe/pull/13340
2021-10-18 12:20:06 +05:30
Gavin D'souza
30c39acabe fix: Don't unlink file blindly
This made sense with the missing_ok. But now, a try-except seems
unnecessary too. Also, possibly destructive. Best to stray away from
these things.
2021-10-18 12:07:42 +05:30
Gavin D'souza
f51b1cc739 fix: Remove unnecessary missing_ok kwarg from unlink
missing_ok added in PY38, this change breaks installs for PY37. ref: https://docs.python.org/3/library/pathlib.html#pathlib.Path.unlink
2021-10-18 11:51:33 +05:30
mergify[bot]
75b7efe76c
Merge pull request #14473 from frappe/child-table-fix
fix: child table layout in the web-form
2021-10-18 06:02:21 +00:00
Shariq Ansari
66314b1895
Merge branch 'frappe:develop' into wspace-code-cleanup 2021-10-18 10:58:47 +05:30
Summayya Hashmani
4146cd3cca
refactor: child table layout in the web-form 2021-10-18 09:28:44 +05:30
Deepesh Garg
d257adc130 fix: Rename loader functions 2021-10-16 16:48:33 +05:30
Aradhya-Tripathi
0cce6e2af8 fix: fixed erroneous queries in translate 2021-10-16 10:50:57 +05:30
abhishek
3cc2202ce9 refactor: convert doctype transaction_log db.sql calls 2021-10-15 17:39:02 +05:30
Your Name
b0421ab7cc refactor: convert doctype log settings db.sql calls 2021-10-15 17:39:02 +05:30
Your Name
ab976aaaae refactor: convert test_file db.sql calls 2021-10-15 17:38:48 +05:30
Aradhya-Tripathi
2c088c81ba refactor: Converted more queries 2021-10-15 05:00:46 +05:30
Aradhya-Tripathi
4ed10de918 fix: fixed sider issues 2021-10-14 23:35:52 +05:30
Aradhya-Tripathi
668051cfe9 refactor: refactored query using frappe.get_all 2021-10-14 23:05:59 +05:30
Aradhya-Tripathi
d72df06e4b Merge branch 'develop' of https://github.com/Aradhya-Tripathi/frappe into query-conversion 2021-10-14 22:47:50 +05:30
Shariq Ansari
82d45cfb66
Merge branch 'frappe:develop' into revert-single-scrollbar-pr 2021-10-14 18:56:10 +05:30
gavin
b73c77a128
Merge pull request #14459 from gavindsouza/console-on_exit
fix: Rollback while exiting console
2021-10-14 18:23:36 +05:30
Gavin D'souza
6712bd9c93 fix: Leaking color in bench --help
Since the character to render NC was cut off due to the char limit, the
whole list of following commands and descriptions would also turn
yellow. Let's keep it colourless in --help. Only, make it yellow when
the command is executed directly.
2021-10-14 17:33:35 +05:30
Gavin D'souza
bc9b3e826b fix: Rollback, Release locals & Close db connection
When exitting console, rollback and destroy the Frappe connection. This
rollback is added so that rollback_observers are executed in case
methods are run in the console which shouldn't be committed.

For instance, running File.optimize will make changes to the file on
disk but may not update the corresponding data in the DB.
2021-10-14 17:30:51 +05:30
Aradhya-Tripathi
18e2ab7e08 refactor: moved aggregation functions from safe_exec 2021-10-14 16:54:44 +05:30
mergify[bot]
00d137d1cb
Merge pull request #14454 from Aradhya-Tripathi/at/patch/builder
feat: prepending `tab` to doctypes in query builder
2021-10-14 11:09:42 +00:00
Your Name
ac54e24fc4 refactor: convert doctype db.sql calls 2021-10-14 16:17:29 +05:30
Aradhya-Tripathi
8ea6158690 refactor: removed aggregation functions at db level 2021-10-14 16:13:49 +05:30
gavin
ac5bf003cc
chore: Update CODEOWNERS 2021-10-14 16:05:18 +05:30
Summayya Hashmani
db08152710
refactor: add padding between social login button 2021-10-14 15:05:55 +05:30
Shariq Ansari
231a04b509 fix: Using svg for menu icon for mobile view 2021-10-14 15:00:23 +05:30
Summayya Hashmani
bd9f14d696
feat: add login fields 2021-10-14 15:00:02 +05:30
Aradhya-Tripathi
c6542749cd feat: prepending tab to table name for UPDATE and INSERT 2021-10-14 15:00:01 +05:30
Shariq Ansari
349c324802
Merge branch 'frappe:develop' into primary-navbar-css-fix 2021-10-14 14:56:27 +05:30
barredterra
58de6515e7 test: test_create_custom_fields 2021-10-14 11:23:56 +02:00
Aradhya-Tripathi
b05cd732f5 ci: trigger build 2021-10-14 14:45:15 +05:30
Your Name
a81a0d16c2 refactor: convert doctype data_export db.sql calls 2021-10-14 14:33:53 +05:30
Manuel
26e508a66f
Merge branch 'frappe:develop' into develop 2021-10-14 11:03:21 +02:00
Manuel
a27a8f0152
Merge branch 'frappe:develop' into multiple_imap_folder 2021-10-14 11:03:12 +02:00