Commit graph

37269 commits

Author SHA1 Message Date
Ankush Menat
29ca4d7aaa feat: allow splitting _() function call on multiple lines 2022-03-26 16:18:35 +05:30
Ankush Menat
92c563d193 test: refactor translation extraction test 2022-03-26 16:18:35 +05:30
Ankush Menat
cf69b7f084 fix: only match 1 python context string at most 2022-03-26 16:18:35 +05:30
Ankush Menat
6fc3c30dc1 refactor: make translate regex readable 2022-03-26 16:18:33 +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
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
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
Nabin Hait
762aeb32f0 fix: Show assignments based on allocated todo only 2022-03-23 13:13:31 +05:30
Gavin D'souza
300227ba71 fix(set_single_value): Make value parameter optional
Similar to set_value for accepting multiple columns ot be updated for
the same Table through a Dict as the second positional arg

Misc: Added type hints
2022-03-23 13:11:55 +05:30
Gavin D'souza
85c7057ae4 fix(activity_log): Remove unused import from namespace 2022-03-23 13:11:17 +05:30
Gavin D'souza
ee355b9cd6 test(log_settings): test_delete_logs
* Refactored TestCase to test "correctly"
* Got rid of earlier flaky logic
* Dropped unwanted tests
2022-03-23 13:09:36 +05:30
shadrak gurupnor
01978ffe73 fix: remove customizations which is not system_generated 2022-03-23 12:16:17 +05:30
Suraj Shetty
cd8bd4ccf0
Merge pull request #16278 from surajshetty3416/is-system-generated-customization 2022-03-23 10:52:21 +05:30
Suraj Shetty
25072fafbe
Merge pull request #16372 from surajshetty3416/fix-calendar 2022-03-23 10:23:28 +05:30
Suraj Shetty
6b6514c796 fix: Use calendar name as it is
Do not convert route to title case since calendar names are case sensitive, and it breaks for calendar names which are all CAPs
2022-03-23 09:34:19 +05:30