Commit graph

227 commits

Author SHA1 Message Date
Ankush Menat
3e2d2a703a test: Use FrappeTestCase everywhere 2022-08-17 16:39:42 +05:30
Gavin D'souza
598359c684 test: Reset requirements for export_doc 2022-08-09 15:57:26 +05:30
Gavin D'souza
208e33afa6 test: Add cleanup for generated files 2022-08-08 15:09:21 +05:30
Gavin D'souza
624c308659 Merge branch 'develop' of github.com:frappe/frappe into modules-refactor 2022-08-08 12:27:11 +05:30
Ankush Menat
40f27f908a style: format JS files with prettier 2022-08-04 14:51:01 +05:30
Gavin D'souza
85e3ee9403 chore: Minified DocType JSON notation from old verbose notation 2022-08-03 12:22:03 +05:30
Shariq Ansari
3216529deb
fix: Letter head image not working (#17608) 2022-07-25 17:46:27 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
Gavin D'souza
a15411d1e1 fix: Skip invalid field in get_print_settings_to_show 2022-06-29 12:53:49 +05:30
Samuel Danieli
19a1393152 feat: make field label translatable 2022-06-27 23:32:55 +02:00
Suraj Shetty
64cc07227e refactor: Replace usage of deprecated attribute 2022-06-21 08:00:49 +05:30
Himanshu
6d6a67e9e3
feat: set image as footer in letter head (#17119)
* feat: set image as footer in letter head

* fix: do not hide footer section

* fix: hide footer source

* style: black

* fix: reduce code for setting image as html

* fix: Force system admin role only if active

* fix(ui): tab refresh was not implemented

* fix(minor): Onboarding: add option to view list view in create action

* fix(minor): js lint

* fix: allow All to select a User

* test: user permissions affecting User

* refactor: filter_dynamic_link_doctypes API

* Added typing, better variable naming
* Remove unnecessary re-iterations
* Optimize queries and membership processing

* perf: Check query type via is_query_type

* chore: Drop duplicate get_frontmatter definition

* perf: Login Page

Improves performance 3x - from 0.047s to 0.017s

* Use frappe.get_*_settings to query table once
* Use cached LDAP Settings' document via get_ldap_client_settings
* Use single get_all to query all Social Login providers and related
  data
* Skip provider if client_secret doesn't exist

* perf: About Us Settings

Use cached document for building /about page

* perf: App Page

Reduced time taken for get_context to execute from 0.035s to 0.02s (75%
reduction)

* perf: Patch qb only once - not on every init

* perf: Fetch and cache entire settings' dicts

* refactor!: frappe.db.get_singles_dict

* Cast single's values as their fieldtypes before returning
* Support previously dead debug parameter
* Consider single with no meta as non-existent; skip query

Decided to go ahead with the breaking change given the nature of the
existing usages of get_singles_dict :crie:

* ci: Run tests bypassing roulette with labels "Run UI Tests", "Run Server Tests"

* test: Scheduler tests cleanup

* chore: linter changes

* chore: linter changes

* chore: linter changes

* fix: set HTML as default

to keep existing formats working

* refactor: no **kwargs

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Rushabh Mehta <rmehta@gmail.com>
Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
2022-06-17 12:07:07 +05:30
Vishal Dhayagude
b04af618f2
fix: fix ux for print preview page (#17087)
Co-authored-by: Shariq Ansari <sharique.rik@gmail.com>
2022-06-08 14:58:06 +05:30
Maharshi Patel
a79a572f65
fix: print & breadcrumbs for forward slash (#17095) 2022-06-08 13:59:52 +05:30
Gavin D'souza
5ec2690160 Merge branch 'develop' into refactor-file 2022-06-01 15:47:55 +05:30
HENRY Florian
1826c9e9af
fix: translation context for print format align values (#17026) 2022-05-31 14:15:21 +05:30
Gavin D'souza
7e51f51f11 test: Added test for PrintFormat.export_doc
Other Changes
* Added return value for export_doc method
2022-04-14 09:58:35 +05:30
Gavin D'souza
97e911e069 Merge branch 'develop' of github.com:frappe/frappe into refactor-file 2022-04-13 10:49:26 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
ChillarAnand
5ca48ae3f6 fix: Fetch only active letter heads 2022-04-04 16:57:25 +05:30
HENRY Florian
7eb5274283
fix: bad closure on double quote print js (#16420) 2022-03-28 17:39:05 +05:30
Gavin D'souza
c6bad81f24 fix: Use new direct import paths
The old paths worked too, but it's just better to use the new paths and
not go in circles ;)
2022-03-15 19:39:47 +05:30
gavin
e1ec5ec964
Merge pull request #15458 from gavindsouza/print-format-rename
fix: Rename Property Setter on Print Format Rename
2021-12-27 15:48:05 +05:30
Gavin D'souza
7a68d797e9 fix: Rename Property Setter on Print Format Rename
This fixes the default print format set when Custom Print Formats are
renamed
2021-12-27 15:02:52 +05:30
karthikeyan5
a1c9282368 fix: update refresh lable in print view 2021-12-24 20:35:17 +05:30
karthikeyan5
dd731903bd fix(print page): addtional menu in mobile view 2021-12-24 10:04:42 +05:30
Jannat Patel
945084e195 fix: include name field and onboarding for print format, report 2021-11-24 19:18:27 +05:30
Jannat Patel
962b8882d2 Merge branch 'letter-head-tour' of https://github.com/pateljannat/frappe into customizations-onboarding 2021-11-24 11:58:25 +05:30
Jannat Patel
aede12d8b7 feat: letter head tour 2021-11-23 10:05:22 +05:30
Rohan Bansal
c5464e2c5a fix: requested changes 2021-11-04 14:50:37 +05:30
Rohan Bansal
64c18a3187 feat: allow more print page size options 2021-10-26 17:04:41 +05:30
Faris Ansari
c679c08675 fix: lru_cache decorator usage 2021-10-22 12:04:27 +05:30
Suraj Shetty
d88bd035d0
refactor: Use LRU cache instead of redis cache 2021-10-22 09:29:15 +05:30
Faris Ansari
239ec49612 style: formatting 2021-10-20 19:06:16 +05:30
Faris Ansari
5345d4ce7b Merge branch 'develop' of https://github.com/frappe/frappe into print-format-builder-beta 2021-10-20 18:40:18 +05:30
Faris Ansari
18b3651b46 feat: Google font selection
google_fonts.json with a decent selection of fonts
2021-10-20 17:20:59 +05:30
Faris Ansari
a90937c865 fix: customize button in print 2021-10-19 19:12:54 +05:30
Faris Ansari
76b5ee8b9e feat: Field Templates
- standard field templates for rendering custom templates for fields for e.g., taxes in invoice
- ability to create user defined reusable templates that show up in print format builder
2021-10-19 19:12:15 +05:30
Suraj Shetty
d47f23dd3a fix(Print): Select button alignment issue 2021-10-19 18:43:44 +05:30
Faris Ansari
c31bf0aadc fix: Page number
- simpler configuration
- remove arbitrary margin text configuration
2021-10-19 15:45:40 +05:30
Suraj Shetty
22ffe27217 fix: Permission check for default print format 2021-10-14 11:00:46 +05:30
Anupam
f6e83dbcaf fix: Customize is not listed in menu item [Print] 2021-10-12 12:35:40 +05:30
Anupam
5387e48a59 fix: network printer settings permission issue 2021-10-07 12:11:29 +05:30
Anupam
34ba19a131 fix: browser printing broken 2021-10-07 10:27:47 +05:30
Faris Ansari
d8457a3c71 fix: Show print preview on print page 2021-10-05 14:21:57 +05:30
Faris Ansari
4bdacf7d81 feat: Better Letterhead editing
- Image resize and align
2021-10-03 14:42:45 +05:30
Anupam
f10d2251e1 fix: sider issue 2021-09-27 10:21:19 +05:30
Anupam
06667968ab fix: error message 2021-09-27 10:21:19 +05:30
Anupam
3f0df6946e fix: error message 2021-09-27 10:21:19 +05:30
Anupam
2bd2ee3655 fix: sider issues 2021-09-27 10:21:19 +05:30