Commit graph

48772 commits

Author SHA1 Message Date
Maharshi Patel
fc213ed761 fix: check for chrome_pdf_generator in form_dict first.
first check if chrome_pdf_generator is available in form_dict.
if not available which can happen if function is called from other places then set value from args or print_format.
2025-02-14 11:04:24 +05:30
Maharshi Patel
f3e0ec5367 chore: added chrome_pdf_generator field
instead of making field custom in print_designer added field in Print Format DocType
2025-02-13 18:42:10 +05:30
Maharshi Patel
46499b5afc chore: Merge branch 'develop' into add_pdf_backend_hook 2025-02-13 11:39:20 +05:30
Akhil Narang
c64aa6822e
Merge pull request #31245 from akhilnarang/bump-cryptography
chore(deps): bump cryptography to 44.0.1
2025-02-13 09:10:15 +05:30
Ejaaz Khan
29265f8df4
Merge pull request #29862 from iamejaaz/refactor-auto-repeat-29378
refactor: add validation and refactor code of auto repeat
2025-02-12 23:04:31 +05:30
Ejaaz Khan
503d932212
Merge pull request #31195 from aerele/auto-email-multiselectlist
fix(auto email report): add get_data function to multiselectlist filters
2025-02-12 22:36:43 +05:30
Akhil Narang
68d52f6da7
chore(deps): bump pyopenssl to match cryptography
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-02-12 18:52:08 +05:30
Akhil Narang
681b63fb13
Merge pull request #31242 from akhilnarang/linked-doc-check-permission
fix(get_linked_docs): check if user can read doctype before fetching a list
2025-02-12 18:45:21 +05:30
Akhil Narang
9743f11ce5
chore(deps): bump cryptography to 44.0.1
This resolves GHSA-79v4-65xg-pq4g

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-02-12 18:37:41 +05:30
Akhil Narang
80d20ff745
fix(get_linked_docs): check if user can read doctype before fetching a list
Users might not have access to all the possible linked doctypes - they should still be able to access the others

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-02-12 18:34:43 +05:30
Maharshi Patel
61aabd00af chore: renamed arg name and cleanup
- fixed chrome_pdf_backend arg by making it int and using it to properly override which pdf generator (chrome / wkhtmltopdf) to use.
- renamed new_pdf_backend to chrome_pdf_backend.
- added chrome_pdf_backend arg in local.from_dict to avoid passing it 4-5 functions deep
2025-02-12 13:24:50 +05:30
Brian Pond
00fb8e7a7a
fix: get_table_columns_description() for MariaDB database.py (#28851) 2025-02-11 17:57:52 +05:30
Corentin Forler
a4c4631c26
fix(rq): Replace ":" in job ID (#31194)
* fix(rq): Replace ":" in job ID

Required since python-rq >= 2.1

* fix: only check custom job IDs

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2025-02-11 10:53:27 +00:00
Ejaaz Khan
a9fb9ef817
Merge pull request #31221 from iamejaaz/30369-multi-select-report
fix: prefill values in the query report's multi select
2025-02-11 15:42:52 +05:30
Ankush Menat
7f0394bf86
fix: short-circuit large table checks (#31223)
This can become super slow on child tables, so first check if it's worth "checking" data.
2025-02-11 10:09:29 +00:00
Soham Kulkarni
561e3727aa
fix: add multicurrency support in number card and dashboard chart (#31079)
* fix: support display currency in number card

* fix: support multi currency for display in dashboard chart

* fix: add python files
2025-02-11 15:38:12 +05:30
Akhil Narang
5731f448c9
Revert "Merge pull request #30896 from dhiashalabi/fix/reorder-setlang-initialization" (#31225)
This reverts commit 60aa2f918a, reversing
changes made to d54f5e575a.
2025-02-11 15:19:36 +05:30
Corentin Forler
dd876a36c5
fix: Prevent HTML injection in Button attributes and documentation_url (#31188)
* fix: Prevent HTML injection in Button attributes

* fix: Prevent HTML injection in documentation_url
2025-02-11 15:16:30 +05:30
s-aga-r
f040fb446c
fix: allow multiple @rate_limit decorators to be considered (#31209) 2025-02-11 15:09:34 +05:30
Ankush Menat
ef3b0ef008
perf: Only filter last 3 months of data by default on large tables (#31216)
Applying something basic like `order id like xyz` filter can result in
full table scan on years of data. This isn't necessary most of the time.

Interactive queries are usually done on recent data, so add this filter
to ensure only recent data is checked first.

Users can remove this filter if they want to.
2025-02-11 09:24:08 +00:00
Ejaaz Khan
f787bb3752 fix: prefill values in the query report's multi select 2025-02-11 14:49:24 +05:30
Maxim Sysoev
87b1e68081
feat: (UI) Show document title in Global Search result (#29131)
Showing title in n Global Search result, if title field set in doctype settings
2025-02-11 14:41:58 +05:30
Maharshi Patel
2f9cb3e6d1 fix(minor): remove margin bottom from document status 2025-02-10 21:05:57 +05:30
Frappe PR Bot
a8589ef484
chore: update POT file (#31197) 2025-02-10 15:00:14 +01:00
Soham Kulkarni
d4fcdecee4
Merge pull request #31204 from sokumon/breadcrumb
fix: check if doc name is string
2025-02-10 14:52:03 +05:30
sokumon
e8cad36bb8 fix: check if doc name is string 2025-02-10 14:22:00 +05:30
Akhil Narang
8a758365eb
Revert "Merge pull request #28363 from frappe/expr-series" (#31202)
This reverts commit 91d553c9cf, reversing
changes made to d17136cd04.
2025-02-10 06:46:45 +00:00
venkat102
df6af57aa3 fix: return if options is array 2025-02-10 10:39:15 +05:30
venkat102
cabd6a8d8a fix(auto email report): add get_data function to multiselectlist filters 2025-02-08 23:09:29 +05:30
Ankush Menat
4c8e4a5874
build: bump gunicorn (#31184)
Prints traceback on req timeout for easier debugging
2025-02-07 14:44:08 +00:00
Frappe PR Bot
75a408c77d
fix: sync translations from crowdin (#31126)
* fix: Turkish translations

* fix: Bosnian translations

* fix: French translations

* fix: Spanish translations

* fix: Arabic translations

* fix: German translations

* fix: Swedish translations

* fix: Turkish translations

* fix: Persian translations

* fix: Bosnian translations

* fix: Hungarian translations

* fix: Chinese Simplified translations

* fix: Polish translations

* fix: Russian translations

* fix: Esperanto translations

* fix: Turkish translations

* fix: Bosnian translations
2025-02-07 14:51:01 +01:00
Raffael Meyer
aade0df7bf
feat: new REST API for copy_doc (#31160)
* feat: new REST API for copy_doc

* test: copy endpoint
2025-02-07 17:46:53 +05:30
Sandeep Kakde
165968714d
fix: update cache key for table_columns to new format (#31179) 2025-02-07 17:19:02 +05:30
Ankush Menat
50a88149c1
fix: reconnect on operational error too (#31172)
MySQL seems to raise diff error based on which state the connection was
in when remote connection closed. Anyway, this should guard against both
kinds of failures.
2025-02-07 09:10:07 +00:00
Akhil Narang
5e422640d9
revert: disable attach fields in unsaved child table rows (#31166)
* Revert "fix: move child table checks to within `set_input()`"

This reverts commit e08fb1cff2.

* Revert "fix(attach): fix crash on web page builder"

This reverts commit b0b0a4e36b.

* Revert "fix: don't allow attaching a file to a child table in a new document"

This reverts commit 2fdc94840f.
2025-02-07 06:35:51 +00:00
Soham Kulkarni
b7aa8c4a11
Merge pull request #31120 from sokumon/filter-null-issue
fix: filter doesnt become null
2025-02-06 18:24:24 +05:30
Maharshi Patel
17375906f8 Merge branch 'frappe:develop' into add_pdf_backend_hook 2025-02-06 17:03:53 +05:30
Ejaaz Khan
b4ddb03a80
Merge pull request #31090 from iamejaaz/sticky-columns-childtable
feat: add support for sticky columns in child table
2025-02-06 17:03:02 +05:30
Ankush Menat
f118a1549c
Merge pull request #31147 from barredterra/fix-child-table-links
fix: consider parent doctype when validating link to child row
2025-02-06 13:14:55 +05:30
Ankush Menat
063f2bbc79 fix: only check parent doctype for child doctypes 2025-02-06 13:05:06 +05:30
Ejaaz Khan
195c437590 refactor: remove log fucntion 2025-02-06 12:04:10 +05:30
Ejaaz Khan
cb3b0c4fc1 fix: sticky header now works immediately without waiting for page load 2025-02-06 11:47:33 +05:30
Ejaaz Khan
b2a1dac602 chore: code clean-up 2025-02-06 11:09:20 +05:30
Akhil Narang
1f81af63cf
Merge pull request #31146 from pgruener/develop
style: fix errormsg to refer postgres instead of mariadb
2025-02-06 10:26:53 +05:30
barredterra
edd4171206 fix: consider parent doctype when validating link to child row 2025-02-05 16:58:43 +01:00
gruener
02d7c7c913
style: fix errormsg to refer postgres instead of mariadb 2025-02-05 14:48:11 +01:00
Frappe PR Bot
353b12a94f
chore: update POT file (#31076) 2025-02-05 13:42:27 +01:00
Ankush Menat
a950ba3c59
fix: bump iterator batch size (#31142)
100 is too small, 10,000 is too big... 1000 is a decent middle ground.
2025-02-05 12:31:24 +00:00
Ankush Menat
aa71072d4a
build: bump RQ to 2.x (#31141)
* build: bump RQ to 2.x

* fix: dont use colon for job IDs
2025-02-05 12:18:03 +00:00
Rushabh Mehta
c038c16bee
Merge pull request #31139 from rmehta/style-fixes-feb-25
fix(styles): Style cleanups for sidebar, breadcrumb
2025-02-05 16:52:28 +05:30