Commit graph

55464 commits

Author SHA1 Message Date
Saqib Ansari
850cc58664 fix: clear_cache for shared cache 2026-04-22 16:20:54 +05:30
Saqib Ansari
757f283eea feat: add get_stats function to retrieve concurrency limits 2026-04-22 16:20:54 +05:30
Saqib Ansari
0064eb80b4 fix: support shared RedisSemaphores for concurrency limits 2026-04-22 16:20:54 +05:30
Saqib Ansari
7f78cd25f9 refactor: extract RedisSemaphore into redis_semaphore.py 2026-04-22 16:20:54 +05:30
Saqib Ansari
65965b9c44 fix: use site_cache as clear_cache is broken for redis_cache 2026-04-22 16:20:54 +05:30
Shrihari Mahabal
1b8f6cddbb
Merge pull request #38796 from ShrihariMahabal/escape-icon-color
fix: escape icon and color fields
2026-04-22 15:02:39 +05:30
Shrihari Mahabal
b593285b56 fix: escape icon and color fields 2026-04-22 14:47:11 +05:30
Aarol D'Souza
b828efe1b5
Merge pull request #38791 from iamejaaz/pdfkit-parsing-meta
fix: disable meta tag parsing in pdfkit
2026-04-22 13:45:06 +05:30
Soham Kulkarni
c7bfffd7e0
Merge pull request #38743 from sokumon/toggle-chart 2026-04-22 12:12:26 +05:30
Ejaaz Khan
69018ad4b5 fix: disable meta tag parsing in pdfkit
Co-authored-by: Ankush <ankush@users.noreply.github.com>
2026-04-22 12:11:00 +05:30
Aarol D'Souza
873362830a
Merge pull request #38790 from AarDG10/ci-reminder
ci(workflow): add backport reminder
2026-04-22 12:03:40 +05:30
AarDG10
ac469a1bae ci(workflow): add backport reminder
Can sometimes forget that a PR was deferred from being backported, adding reminder bot to remind after 2 weeks.
2026-04-22 11:46:32 +05:30
Raffael Meyer
068f6b7699
chore: update translations (#38789) 2026-04-22 01:28:41 +00:00
Raffael Meyer
a75373eab2
chore: update translations (#38788) 2026-04-22 00:44:08 +00:00
Raffael Meyer
38102d45e6
chore: update translations (#38786) 2026-04-21 20:37:53 +00:00
MochaMind
f3c6b8694d
fix: sync translations from crowdin (#38782)
* fix: French translations

* fix: Spanish translations

* fix: Arabic translations

* fix: Czech translations

* fix: Danish translations

* fix: Italian translations

* fix: Dutch translations

* fix: Polish translations

* fix: Portuguese translations

* fix: Slovenian translations

* fix: Turkish translations

* fix: Vietnamese translations

* fix: Portuguese, Brazilian translations

* fix: Indonesian translations

* fix: Persian translations

* fix: Thai translations

* fix: Burmese translations

* fix: Norwegian Bokmal translations

* fix: German translations

* fix: Hungarian translations

* fix: Russian translations

* fix: Serbian (Cyrillic) translations

* fix: Swedish translations

* fix: Chinese Simplified translations

* fix: Croatian translations

* fix: Bosnian translations

* fix: Serbian (Latin) translations

* fix: Esperanto translations
2026-04-21 23:09:27 +05:30
Aarol D'Souza
953d9e4867
Merge pull request #38781 from AarDG10/fix-datetime
fix(datetime): set lastSelectedDate in datetime picker
2026-04-21 23:00:32 +05:30
AarDG10
e2dd7bc8b0 fix(datetime): set lastSelectedDate in datetime picker 2026-04-21 22:59:16 +05:30
Shrihari Mahabal
81259709a7
Merge pull request #38774 from ShrihariMahabal/prevent-single-virtual-doctype-persistence
fix: prevent persistence of virtual single doctypes
2026-04-21 21:53:49 +05:30
Abdeali Chharchhodawala
690826ff9b
feat!: faster generation and formatting utils for excel exports (#36323)
* feat: Style builder for report xlsx formatting

* fix: update report to use direct import for query report execution

* refactor: simplify module method retrieval in report execution

* feat: get xlsx styles for report

* refactor: enhance XLSXStyleBuilder with currency formatting and default style registration

* feat: add xlsxwriter dependency for enhanced XLSX report generation

* refactor: enhance XLSXStyleBuilder with improved style registration and formatting methods

* feat: enhance XLSX export functionality with improved styling and metadata support

* refactor: default formatting of currency

* chore: remove some typo

* feat: update make_xlsx function to use xlsxwriter for improved Excel file generation and styling

* perf: some micro optimisations

* refactor: inline generator back and improve condition

* refactor: replace frappe.request_cache with functools.cache

* fix: handle styling in email

* fix: fix old test case to handle styles in export

* refactor: enhance XLSX style handling and registration methods

* refactor: improve currency formatting logic

* fix: update make_xlsx to use constant_memory for large datasets and improve row style handling

* fix: handle None style_id in XLSXStyleBuilder methods to prevent errors

* fix: include owner field with proper doctype naming

* fix: set default date format in XLSX workbook creation

* fix: pass applied filters to metadata

* fix: getting accurate field info for report view exporting

* chore: Minor changes

* feat: add function to generate default XLSX styles for exports

* feat: integrate default XLSX styles into builder report export functionality

* feat: styles on export docs xlsx

* feat: enhance make_xlsx function to support file path saving

* feat: add make_xls function for creating Excel files in old format and improve sheet name sanitization

* fix: handle default date formatting

* refactor: changes xlsx builder usage

* refactor: update xlsx style builder usage

* refactor: enhance field info retrieval with default field support

* fix: handle update key in report data

* refactor: enhance get_field_info to include options and improve label retrieval

* fix: improve error handling for unsupported file formats and ensure applied filters are set correctly

* refactor: update XLSX header index handling and improve metadata structure

* fix: handle currency formatting in reportview export

* fix: update default date format to datetime format in XLSX creation

* fix: update serial number field in auto email report to use 'sr' instead of 'idx'

* fix: enhance XLSX styling by adding right alignment for specific field types

* chore: remove unused code

* fix: update XLSXMetadata attributes for improved report styling options

* perf: further improve currency styling

* fix: correct column index mapping in XLSX export header

* refactor: optimize indentation style registration in XLSXStyleBuilder

* perf: improve apply_indentations

* fix: reduce more attr lookup

* refactor: remove duplication

* fix: use report name in XLSX export instead of hardcoded title

* fix: remove ignore_visible_idx from XLSXMetadata

* fix: review

* fix: update XLSX style fetching logic in build_xlsx_data function

* fix: add right alignment to date, time, and datetime styles in XLSXStyleBuilder

* fix: simplify number format handling in XLSXStyleBuilder

* fix: register common styles in XLSXStyleBuilder for improved style management

* test: add tests for XLSX styles structure and fieldtype column styles in XLSXStyleBuilder

---------

Co-authored-by: Sagar Vora <16315650+sagarvora@users.noreply.github.com>
2026-04-21 19:07:43 +05:30
Shrihari Mahabal
07dd2fd9dc fix: prevent persistence of virtual single doctypes 2026-04-21 19:04:11 +05:30
Abdeali Chharchhoda
a0240a3d18 chore: minor fix 2026-04-21 18:33:46 +05:30
Kerolles Fathy
9f5b45167d
Merge pull request #38766 from frappe/revert-38249-fix/serial-no-style-on-report
Revert "fix(report): enhance the visibility of serial-no at first column"
2026-04-21 14:52:07 +02:00
Abdeali Chharchhoda
0ed3651767 test: add test for delete_custom_fields function 2026-04-21 18:21:00 +05:30
Abdeali Chharchhoda
eb8e683c26 feat: add delete_custom_fields function to remove custom fields from doctypes 2026-04-21 18:20:16 +05:30
Kerolles Fathy
56dbad7715
Revert "fix(report): enhance the visibility of serial-no at first column (#38…"
This reverts commit 8509c79877.
2026-04-21 14:45:04 +02:00
Soham Kulkarni
e516f716bf
Merge pull request #38764 from sokumon/remove-icon-close
fix: replace icon-close with icon-x
2026-04-21 17:36:05 +05:30
sokumon
32aaaa7abe fix: replace icon-close with icon-x 2026-04-21 17:01:39 +05:30
sokumon
a8ca40b444 fix(dialog): add a flag to include default value 2026-04-21 16:58:54 +05:30
MochaMind
7d49a515b0
chore: update POT file (#38714) 2026-04-21 16:22:39 +05:30
Ejaaz Khan
19eb07ffc4
Merge pull request #38752 from iamejaaz/bum-datatable
chore: update datatble to 1.20.1
2026-04-21 12:47:50 +05:30
Ejaaz Khan
48f48b6207 chore: update datatble to 1.20.1 2026-04-21 12:31:27 +05:30
Aarol D'Souza
4358f5bd44
Merge pull request #38740 from AarDG10/fix-backup
fix(response): harden download_backup
2026-04-21 12:11:08 +05:30
Ejaaz Khan
486d56934b
Merge pull request #38741 from KerollesFathy/fix-hide-permissions-tab
fix(doctype): show Permissions tab only when doctype is not a child table
2026-04-21 06:59:48 +05:30
barredterra
38e140df22 fix(tests): skip uninstalled doctypes in test record dependency walk
The test runner walks link-field dependencies recursively to pre-generate
test records via `get_missing_records_doctypes`. If any DocType in the
transitive link graph belonged to an app not installed on the test site,
the walk crashed with `DoesNotExistError`, aborting the entire suite
before a single test ran.

Treat such link targets as dead-end leaves instead:

- `get_modules` now returns `(None, None)` when the DocType row does not
  exist, instead of falling through into `load_doctype_module` which
  raises.
- `get_missing_records_doctypes` checks for `module is None`, logs a
  warning naming the parent DocType that linked to it, and returns
  without descending further.

This restores the ability to run downstream test suites that link
(directly or transitively) to optional/uninstalled apps without forcing
every CI environment to know the full transitive link graph.

Fixes #38747
2026-04-21 01:49:08 +02:00
Raffael Meyer
166bb914c1
fix: set autocomplete attribute for password fields in user and setup wizard forms (#38744) 2026-04-20 23:09:49 +00:00
sokumon
e33097fd35 fix(dialog): send default value in dialog 2026-04-21 02:48:53 +05:30
sokumon
249adb0680 fix: spacing between group by label 2026-04-21 01:13:13 +05:30
KerollesFathy
5c7d28a826 fix(doctype): show Permissions tab only when doctype is not a child table 2026-04-20 14:16:10 +00:00
AarDG10
0c660477ee fix(response): harden download_backup
Made use of util `check_path_safety` to ensure sandboxing.
2026-04-20 18:58:21 +05:30
AarDG10
7c9ce26469 feat(utils): add util to ensure sandboxing
This util can be used in places where sandboxing is needed.
2026-04-20 18:49:42 +05:30
Soham Kulkarni
ec3922e903
Merge pull request #38738 from sokumon/sidebar-history 2026-04-20 18:10:32 +05:30
sokumon
f083bdcb48 fix: add a check if sidebar_item_map exists 2026-04-20 18:02:20 +05:30
Soham Kulkarni
c8e0a89b1c
Merge pull request #38353 from sokumon/sidebar-history 2026-04-20 17:28:30 +05:30
Abdeali Chharchhodawala
3796860c92
fix: simplify total row calculation logic in query report (#38677) 2026-04-20 10:38:34 +00:00
Soham Kulkarni
57a94ca566
Merge pull request #38726 from sokumon/default-workspace 2026-04-20 14:28:25 +05:30
Ejaaz Khan
9ead794803
Merge pull request #38730 from Nihantra-Patel/fix-report-letterhead-validation
fix: skip report letter head validation when no letter head is set
2026-04-20 12:54:01 +05:30
Nihantra C. Patel
0cefdf0f8d
fix: formatting 2026-04-20 12:44:34 +05:30
Nihantra C. Patel
c36dc287b4
fix: skip report letter head validation when no letter head is set 2026-04-20 12:36:44 +05:30
Ejaaz Khan
58ef5aded0
Merge pull request #38724 from AarDG10/fix-bulk-paste
fix(table): fix bulk paste in child tables
2026-04-20 11:14:30 +05:30