Gavin D'souza
2f413cab53
feat(FileUploader): Added "max_number_of_files" restriction
...
FileUploader will accept N files and pop the rest, followed by a
console.warn and frappe.show_alert
2022-03-28 18:13:18 +05:30
gavin
8dbb7bc71d
Merge branch 'develop' into refactor-file
2022-03-26 10:42:42 +05:30
Ritwik Puri
0d16c20f93
test: tests for Cast_ Function in qb ( #16399 )
...
* test: tests for Cast_ Function in qb
* test: remove unneeded sync
Co-authored-by: Mohammad Hasnain <hasnain2808@gmail.com>
2022-03-25 14:46:08 +05:30
Mohammad Hasnain Mohsin Rajan
fda544f424
refactor!: make automatically following documents optional ( #16030 )
...
* fix: make automatically following documents optional
* fix: optimize email triggers for document followed
* test: add tests for document follow settings
* test: sync global search before testing
* fix: extend pypika's cast function to mimic varchar cast in MariaDB
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
Co-authored-by: phot0n <ritwikpuri5678@gmail.com>
2022-03-25 02:01:15 +05:30
Mohammad Hasnain Mohsin Rajan
02c9de7e38
fix(translation): Set translated text as html to get unescaped output ( #16214 )
2022-03-25 01:11:42 +05:30
Gavin D'souza
47cf46cd49
Merge branch 'develop' of github.com:frappe/frappe into refactor-file
2022-03-24 21:38:21 +05:30
Gavin D'souza
f23298fc16
chore: Drop unmaintained file
...
To check out the up-to-date version of hooks.md, see https://frappeframework.com/docs/v13/user/en/python-api/hooks
2022-03-24 21:37:20 +05:30
Gavin D'souza
cec4c92a29
fix(test): Update file tests for the new API changes
2022-03-24 21:31:28 +05:30
Gavin D'souza
654f744e63
fix(File): Misc fixes
...
* Move checks into common methods
* Refactor to use latest APIs
* Remove seemingly unnecessary code
* Fix previously undhanled use cases
2022-03-24 21:27:21 +05:30
Gavin D'souza
e6192f2232
refactor(File): Use _content attribute instead of overwriting content
2022-03-24 21:23:35 +05:30
Gavin D'souza
e180257510
fix: Handle File on rollback
...
Delete, Move or Restore files in the filesystem by setting Document
flags in the on_rollback method
2022-03-24 21:19:58 +05:30
Gavin D'souza
d53b05fcb7
refactor(file): File.is_remote_file instead of startswith http
2022-03-24 21:17:43 +05:30
Gavin D'souza
8ec96dab69
fix: Misc fixes
...
* Set default Falsy value for content
* Extend Frappe exceptions into file's
2022-03-24 21:12:58 +05:30
Gavin D'souza
60ef536393
fix: Strip HTML tags in traceback shown in the terminal
2022-03-24 19:31:02 +05:30
Sagar Vora
833eeff1c4
fix: remove hyphen from class name while creating boilerplate ( #16391 )
2022-03-24 17:55:09 +05:30
Ankush Menat
b029b255fe
refactor: code duplication for sql whitelisting
2022-03-24 17:49:28 +05:30
Carsten Tschense
e833ef3a0d
feat: allow WITH ... SELECT (CTE) SQL in query reports.
2022-03-24 17:49:28 +05:30
Ankush Menat
a708f02580
test: fix implicit commit
2022-03-24 16:18:52 +05:30
Ankush Menat
590aaf80c7
fix(UX): Logout -> Log out
2022-03-24 15:57:16 +05:30
Ankush Menat
e1d90dcc29
revert: "feat: redirect for support portal" ( #16394 )
2022-03-24 15:50:44 +05:30
mergify[bot]
58aa8a27e9
Merge pull request #16339 from alyf-de/use-local-refresh-field
...
refactor: Form.update_in_all_rows
2022-03-24 08:25:45 +00:00
Rushabh Mehta
366d4a16a5
Merge pull request #16356 from rmehta/page-builder-updates
...
feat(website): added new templates to page builder and refactored typography to be more consistent
2022-03-24 11:56:25 +05:30
Rushabh Mehta
162a16e74e
fix(test): web_form.js
2022-03-24 09:21:34 +05:30
Rushabh Mehta
145655e8f5
fix(style): web form styles
2022-03-24 09:21:34 +05:30
Rushabh Mehta
3a2b86661a
fix(style): web form cleanups
2022-03-24 09:21:34 +05:30
Rushabh Mehta
857b778eae
fix(styles): text and style for multi-part web_form.js
2022-03-24 09:21:34 +05:30
Rushabh Mehta
7e8261de25
fix(styles): show save button for multi-part web form
2022-03-24 09:21:34 +05:30
Rushabh Mehta
ffd1921a69
fix(styles): show save button for multi-part web form
2022-03-24 09:21:34 +05:30
Rushabh Mehta
dffef1285d
fix(styles): fix styles for my account and web forms
2022-03-24 09:21:34 +05:30
Rushabh Mehta
e034072bac
fix(minor): linting in website.js
2022-03-24 09:21:34 +05:30
Rushabh Mehta
eddca47216
fix(minor): video styles
2022-03-24 09:21:34 +05:30
Rushabh Mehta
72e7ed508e
fix(minor): bolder headings
2022-03-24 09:21:34 +05:30
Rushabh Mehta
b66011de5a
feat(website): added new templates to page builder and refactored typography to be more consistent
2022-03-24 09:21:34 +05:30
Suraj Shetty
1b69b0b516
Merge pull request #16389 from surajshetty3416/fix-global-filter
2022-03-24 08:48:15 +05:30
Suraj Shetty
d253b5e5e4
fix: Global filter check
2022-03-24 08:32:50 +05:30
Sagar Vora
4bb5ea609c
fix: get currency name from DB only if options are set and value is truthy ( #16382 )
...
* fix: call `frappe.db.exists` only if `options` are set and value is truthy
* fix: sider issue
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
* fix: use `get_value` instead of `exists`
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
* test: ensure currency formatting works without currency set in df options or param
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2022-03-23 19:28:01 +05:30
leoajr
a9b8fe8197
docs: incorrect argname in docs for get_list #16384
2022-03-23 18:29:39 +05:30
Gavin D'souza
f8f0402afd
fix: Skip handling is_private updates for remote files
2022-03-23 16:59:37 +05:30
Suraj Shetty
76ee35f865
Merge pull request #16219 from hrwX/camera_upload
2022-03-23 16:52:03 +05:30
mergify[bot]
00defb746e
Merge pull request #16376 from nabinhait/assignment-fix
...
fix: Show assignments based on allocated todo only
2022-03-23 11:19:07 +00:00
gavin
3b3b895bdd
Merge pull request #16379 from gavindsouza/start-transaction-log-settings
...
fix(test): start transaction explicitly before savepoint
2022-03-23 16:17:25 +05:30
Raffael Meyer
f80a16ed14
feat: add translated search doctypes to hooks ( #16197 )
...
In `search.py` it was hardcoded that **DocType** and **Role** get translated before matching against the search text. This way, a user can type in his local language and still see correct results.
This feature is useful for other DocTypes as well. The criterion would be: there is a small, fairly static number of records, so that the performance impact of translating all names first is not too bad.
This PR adds a hook `translated_search_doctypes` that determines which DocType names get translated before search.
I also added **Country** to `translated_search_doctypes` for frappe. The link to **Country** is frequently used in **Address**, but until now there was no way to use it in the local language. There are ~70% less Countries than DocTypes (including ERPNext), so the performance should be fine.
ERPNext could, for example, add the **Gender** DocType to this hook. As there are very few genders, translating them is fast and improves the UX.
Docs: https://frappeframework.com/docs/v13/user/en/python-api/hooks/edit?wiki_page_patch=b4d7c8d6fc
2022-03-23 10:43:04 +00:00
Gavin D'souza
93a36092fd
fix(test): start transaction explicitly before savepoint
2022-03-23 16:00:25 +05:30
mergify[bot]
64efc6bd88
Merge pull request #16042 from saxenabhishek/aks-feat-parse_app_name
...
feat: app name parsing
2022-03-23 09:01:52 +00:00
mergify[bot]
70bbcccba7
Merge pull request #16118 from shadrak98/log-settings
...
fix: clean up logs job was broken
2022-03-23 08:47:40 +00:00
mergify[bot]
87e640c660
Merge pull request #16147 from shadrak98/customize-form-chore
...
fix: remove custom-fields too on reset-to-default
2022-03-23 08:46:22 +00:00
Gavin D'souza
22fc955e65
fix: Tabs > Spaces
2022-03-23 13:37:41 +05:30
Carlos Ríos
e8fdca8698
feat(logger): implement stream_only to use StreamHandler instead of RotatingFileHandler ( #16274 )
...
* feat: implement valued parameter 'stream_only' in 'get_logger()' in order to stream logs into stderr instead rotating log files.
Co-authored-by: gavin <gavin18d@gmail.com>
2022-03-23 13:37:12 +05:30
gavin
a7f1639e65
Merge branch 'develop' into log-settings
2022-03-23 13:20:33 +05:30
Gavin D'souza
b79d55c5d3
refactor(minor): clear_outbox
...
* Use pluck API instead of building dict and then accesing keys
* Styled query
* Added type hints
2022-03-23 13:18:22 +05:30