Commit graph

45478 commits

Author SHA1 Message Date
Raffael Meyer
b3ff1f9fcc
perf: remove specific elements instead of re-rendering entire list (#25078) 2024-02-27 13:08:26 +05:30
Akash Tom
98fac311a8
fix(File Uploader): call 'upload_files' without passing event object (#25034) 2024-02-27 12:43:03 +05:30
Alan
6cf8f4ecae
Merge pull request #24317 from blaggacao/chore/cleanup-esbuild-path-resolution
chore: remove confusing indirections from esbuild path resolution
2024-02-27 11:09:37 +05:30
Corentin Flr
0934dfea93
fix(formatters): Translate Select value in format_value (#24951) 2024-02-26 21:05:44 +05:30
Corentin Flr
80bcfff79d
fix(ControlTime): Don't set datepicker's date if field is read only (#25038) 2024-02-26 20:20:50 +05:30
Maharshi Patel
ce2d91c751
feat: hook for print format template loader (#25037)
* feat: hook for print format template loader

currently logic for how print format template should be loaded is hardcoded
added hook to allow for custom logic to be implemented by other apps.

if hook returns falsy value, then default logic will be used.

* chore: use Walrus Operator and handle Empty Hooks
2024-02-26 20:20:25 +05:30
Raffael Meyer
501297b71c
perf: don't process checks if there are none (#25063) 2024-02-26 20:12:31 +05:30
Ankush Menat
1b4fe29da2
Merge pull request #25066 from barredterra/progressive-list-render
refactor: render list progressively
2024-02-26 20:12:09 +05:30
Ankush Menat
c34d350223
Merge pull request #25040 from barredterra/edit-table-row-tooltip
fix: show tooltip on edit table row
2024-02-26 20:05:22 +05:30
Raffael Meyer
7f44f020a6
perf: avoid unnecessary json parsing (#25065) 2024-02-26 19:58:57 +05:30
barredterra
7781f4344c refactor: render list progressively 2024-02-26 15:12:18 +01:00
Jannat Patel
898f982a88
fix: replaced created by with owner in base_document (#25059) 2024-02-26 12:12:26 +00:00
Akhil Narang
ad15ee7183
Merge pull request #25041 from barredterra/row-no-label
fix: add context for row number label
2024-02-26 14:13:51 +05:30
Ankush Menat
a1d295fe07
Merge pull request #25050 from frappe/impersonate
feat: Impersonate a user
2024-02-24 18:43:37 +05:30
Ankush Menat
24499d93f8 fix: notify user that they were impersonated 2024-02-24 18:31:10 +05:30
Ankush Menat
be47ee0e31 fix: track all impersonated changes 2024-02-24 18:25:09 +05:30
Ankush Menat
0fd4d6b67f fix: log activity for impersonations 2024-02-24 18:25:09 +05:30
Ankush Menat
c58ac809ac fix: Flag impersonated sessions 2024-02-24 18:25:09 +05:30
Ankush Menat
ecc9ff378e feat: impersonate any user as Administrator 2024-02-24 18:25:07 +05:30
Ankush Menat
2588de6384
fix: invalid lru_cache usage (#25046)
- using it on closure is useless because a new cache is created
and destroyed everytime.
2024-02-24 12:04:18 +05:30
Raffael Meyer
6cdc1dc502
Merge pull request #25043 from barredterra/translate-doctype-error 2024-02-24 02:53:01 +01:00
barredterra
b6f12db08c fix: translate doctype in user-facing error message 2024-02-24 02:39:29 +01:00
barredterra
fa0b59aa70 test: cypress form 2024-02-23 22:49:10 +01:00
barredterra
2646771811 test: cypress grid 2024-02-23 22:48:31 +01:00
barredterra
30ad6a8094 chore: remove unused css 2024-02-23 22:48:05 +01:00
barredterra
0334ae32b6 fix: add context for row number label
Note: I had to remove the `else` branch because `txt` is (and has always been) undefined there.
2024-02-23 17:09:46 +01:00
barredterra
36ae9b73bf fix: show tooltip on edit table row 2024-02-23 16:54:35 +01:00
Maharshi Patel
0e12cf4281
chore: replace PFB Beta link with Print Designer (#25032)
Replaced Print Format Builder Beta link in print-view to Print Designer.
if App is installed it opens Print Designer, if not it opens Frappe Cloud Marketplace Link.
2024-02-23 20:19:08 +05:30
Ankush Menat
a19fd6a8b9
fix: Don't init site if already init-ed during truncate (#25033) 2024-02-23 11:37:38 +00:00
Frappe PR Bot
0b3061e904
New translations main.pot (German) (#25031) 2024-02-23 16:56:40 +05:30
Md Hussain Nagaria
690cb7d372
refactor: scheduled job type enhancements (#25007)
* refactor: remove autoname

* chore(Scheduled Job Type): enable show title in link

* chore: validate duplicate job

* test: throws on duplicate scheduled job

* feat: attach frequency and cron_format to `frappe.job`

* refactor: add unique constraint on db level

* fix: attach to frappe.job only if defined

* test: scheduled job name will get updated on frequency update

* test: wrap duplicate inserts in db savepoint/rollback

* fix: rollback without savepoint

* test: use loose Exception for raise assertion
2024-02-23 10:12:51 +00:00
Ankush Menat
e46ded10c0
fix: keep 3 recent versions of website themes around (#25029)
For whatever unknown reason (https://github.com/frappe/frappe/issues/22205) website theme cache can be invalid or it might fail to generate correctly.

In such cases website becomes unusable, this PR tries to keep it usable.
2024-02-23 10:02:47 +00:00
Corentin Flr
5563c925a5
feat(address): Add no_title param to get_condensed_address Jinja filter (#24949) 2024-02-23 05:46:14 +00:00
Akhil Narang
36ba02e71a
Merge pull request #25024 from riandrys/fix_get_label_from_fieldname_translation
fix: translation get label from fieldname
2024-02-23 10:54:11 +05:30
Nikhil Kothari
bc68afa5b6
fix: spelling of "recording" in button (#25025) 2024-02-23 10:40:31 +05:30
Riandrys Gongora Roman
f992821459
fix: translation get label from fieldname 2024-02-22 16:00:59 -05:00
Corentin Flr
8deed2e519
fix(grid): Add type attribute to buttons (#25021) 2024-02-22 18:07:26 +05:30
Ankush Menat
1ff7b84140
fix: wrap read_only functions correctly (#25018)
`functools.wraps` preserves signature useful for introspection.
2024-02-22 11:16:15 +00:00
Raffael Meyer
d8890a2286
fix: patch unordered list (#24971) 2024-02-22 16:19:23 +05:30
Ankush Menat
00977e0c5e
fix: handle total rows in number card (#25011) 2024-02-22 08:34:08 +00:00
Ankush Menat
14bfcb628d
fix: Guess currency from report row if available (#25009)
* fix: Guess currency from report row if available

In number card using report the curency can be defined on a row in
report, but since we don't pass report data currency fields get
formatted with default currency of global company.

* perf: use reducing common_doc for checking

Overtime this will be smaller than all rows and if everything is
exhausted then no work left to do.
2024-02-22 13:46:08 +05:30
Ankush Menat
4f18daba17
ci: fix ocassional patch test failure (#25001)
Some files in /env are touched during deletion which causes test to fail.

Hunch: running processes still not killed OR background jobs.
2024-02-21 14:55:32 +00:00
Jannat Patel
ab485b2f4f
fix: disable internal columns like _comments from report column selec… (#24998)
* fix: disable internal columns like _comments from report column selection

* fix: only exclude comments from reportview
2024-02-21 19:45:12 +05:30
Ankush Menat
9d0a24f3de
fix: handle email without content adding links (#24994) 2024-02-21 19:18:21 +05:30
Ankush Menat
dd50cc0cf1
fix: Correct type hint (#24990)
closes https://github.com/frappe/frappe/issues/24987
2024-02-21 19:12:21 +05:30
Ankush Menat
99bb5d0303
fix: Cast to string to handle int PK (#24988) 2024-02-21 13:27:38 +00:00
Ankush Menat
2dffcc08ab
fix: allow negative numbers in grid search (#24989) 2024-02-21 13:26:03 +00:00
Ankush Menat
dab06f33b1
fix: add show_dashboard field on custom fields (#24984)
closes https://github.com/frappe/frappe/issues/23637
2024-02-21 12:58:34 +00:00
Ankush Menat
f819558f35
chore: typo (#24983) 2024-02-21 17:33:36 +05:30
Shankarv19bcr
437beaa735 fix: typo 2024-02-21 17:19:32 +05:30