Commit graph

62 commits

Author SHA1 Message Date
Ankush Menat
3896296c6f fix: update sort order in doctypes 2024-03-27 11:18:28 +05:30
Ankush Menat
de9ac89748 style: re-format with ruff 2024-02-05 18:53:33 +05:30
Rucha Mahabal
53d6d156ec
chore: cleanup doctype descriptions (#24609) 2024-01-31 12:00:39 +05:30
Gursheen Kaur Anand
f45bfe208a
fix: allow accounts manager read perm in currency (#24419) 2024-01-17 16:07:22 +05:30
Ankush Menat
927cd647e4 chore: generate type annotations 2023-07-24 15:32:48 +05:30
Ankush Menat
8446875257
refactor!: Remove "Set user permission" permtype (#20090)
This has never worked and setting user permission requires system
manager role always (because of permissions on list view)
2023-02-20 16:07:49 +05:30
Ankush Menat
56b6e3eabd fix: deduplicate currencies manually
on mariadb 10.3 `insert ignore` doesn't work
2022-12-05 16:00:44 +05:30
Ankush Menat
7d52df875f
perf(install): bulk insert country and currencies (#19084) 2022-12-03 12:03:05 +05:30
hrwx
b01929405d refactor: translatable doctypes 2022-08-05 21:38:10 +01:00
Ankush Menat
40f27f908a style: format JS files with prettier 2022-08-04 14:51:01 +05:30
Ankush Menat
01fbd035a7
ci: label test requirement (#17691)
[skip ci]
2022-08-01 15:30:03 +05:30
Ankush Menat
aed9d22609
fix: incorrect default fraction for USD (#17415)
fix: correct fraction for El Salvador
2022-07-05 19:51:58 +05:30
Ankush Menat
054ad9c30c feat: Allow showing currency symbol to the right 2022-07-05 11:21:23 +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
chillaranand
25f82e966c refactor: Remove unused imports & code 2022-05-19 15:34:35 +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
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
Deepesh Garg
dbd8f52e54 feat: Non negative check for Int, Float and Currency fields 2020-10-29 16:40:38 +05:30
Suraj Shetty
fa03a73fc0 fix: Update country.json
to make sure time_format column is created for country table.
2020-02-24 15:46:39 +05:30
Andrew McLeod
07cedc581d feat: Optionally remove seconds from datetime (#8531)
* fix: Add updated datepicker; fixed seconds formatting bug.
Seconds between 0 and 9 were not zero-padded.

* feat: Add framework for time format

* feat: datetime server-side formatters.

* tests: Added server-side datetime formatter tests

* feat: Update client-side datetime formatters

* tests: Add Cypress client-side formatting tests.

* fix: JSON errors

* fix: Update to not hard-code admin password

* fix: Change to using bulk_update rather than the REST API

* tests: Use Custom doctype for testing, not Standard

* fix: Codacy style fixes

* fix: Commonify update_datetime_picker in date.js, datetime.js, time.js
Fix order of time_format in System Settings
Restore get_user_fmt in utils/datetime.js

* feat: Drastically reduce scale of Cypress testing (to make tests faster)
Full testing is possible by setting 'fast_mode' to false in the spec file.

* fix: Fix issues with datepicker/timepicker expansion

* fix: typo

* style: Various style fixes as requested by DeppSource: Python

* fix: Timepicker not hiding on 'now' button. Force hiding on click.

* style: Codacy style fixes.

* fix: Use datepicker from node_modules

* test: Refactor Datetime UI tests

- cy.get_field
- cy.set_value
- cy.insert_doc with ignore_duplicate
- Nominal datetime tests to cover most formats
- Formatting with prettier

* test: Datetime UI tests; wait for cur_frm.doc.datetime to update

* tests: Add whitespace to typed input

- Clear input only for Time field

* test: Wait timeout 200

* test: Fix form test

Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
2019-12-25 14:54:28 +05:30
Saqib
b0622255d4 revert: changes in currency formatting (#8996)
* fix: reverted currency formatting

* ux: added description for currency's number format
* It doesn't have any effect on how the currency is formatted.

* fix: revert json changes in currency master
2019-12-10 15:50:26 +05:30
thefalconx33
4b2d91b295 fixes: Incorrect currency value while pasting from excel sheets for other countries. 2019-10-19 15:24:46 +05:30
Faris Ansari
19c4f6086e fix: Remove cscript and cur_frm from all client scripts
- DocType
- Report
- Property Setter
- Newsletter
- Currency
- Contact
- Address and Contact
2019-03-20 17:29:43 +05:30
Aditya Hase
837bfc0995 fix(unicode): Import unicode_literals in every file (#6805)
* fix(unicode): Import unicode_literals in every file

* fix(unicode): Test if safe_json_loads return unicode instead of bytes
2019-01-25 11:56:27 +05:30
Rushabh Mehta
a9f32f292c default(perms): add default import, export perms 2018-08-29 17:09:35 +05:30
Rushabh Mehta
b4650f42a1 [minor] remove in_dialog old property 2018-05-16 12:51:01 +05:30
KanchanChauhan
f52e389d4f Salutation and Gender in Contact (#3079) 2017-06-13 15:25:53 +05:30
Kanchan Chauhan
0ff340ba3b [WIP] [Enhancement] Employee Address moved to Address 2017-04-13 19:17:09 +05:30
Makarand Bauskar
30c0f625ab [fixes] address and contact filter query fixes (#3065) 2017-04-11 19:11:34 +05:30
Robert
9e8896d3c1 [minor] translation related: Address document autoname and Search box placeholder (#2918)
* strings in templates translatable

* [minor] placeholder in search box is translatable now

* Address autoname creates new name from translated address_type
2017-03-27 15:24:06 +05:30
KanchanChauhan
7c38c2155b [Fix] Address web view fixed (#2899) 2017-03-23 14:55:40 +05:30
mbauskar
e7b520d443 [minor] don't allow transactions in contact/address link_doctype field 2017-03-13 10:39:31 +05:30
mbauskar
0bd9f37ebe [minor] filters for both address and contact dynamic link lin_doctype field 2017-03-07 17:17:14 +05:30
Nabin Hait
2e02267e88 Added fields in global search 2017-02-20 13:39:21 +05:30
Makarand Bauskar
5e4860b4e6 [minor] set contact query minor fixes (#2662) 2017-02-02 10:57:28 +05:30
Makarand Bauskar
dc59e978f7 [minor] fixes for Is Your Company Address validations (#2606)
* [WIP] Address & Contacts fixes

* [minor] included sales partner in Addresses and Contacts report

* [minor] filters in address and contact query

* [minor] address and contact utils
2017-01-24 14:38:33 +05:30
Rushabh Mehta
d0ee7d3f0d [minor] deduplicate dynamic links 2017-01-19 13:08:23 +05:30
Rushabh Mehta
1487adf7c4 [minor] fix default queries 2017-01-18 14:12:56 +05:30
Rushabh Mehta
1f949731a4 [typo] address docs 2017-01-16 13:05:51 +05:30
Rushabh Mehta
b72e72cd77 [fix] test records for address 2017-01-13 23:04:27 +05:30
Rushabh Mehta
d6c3c9a8e7 [enhance] moved contact to frappe 💥 2017-01-13 18:52:41 +05:30
Rushabh Mehta
d989a95472 [feature] document versioning #2469 (#2523)
* [feature] document versioning #2469

* [minor] remove on_update from WebsiteGenerator

* [fix] delete shares when deleting user

* [test] don't run delete in background if test

* [fix] test_db

* [added] Deleted Document

* [fix] added track_changes in all documents

* [fix] add to deleted only if exists

* [fix] in_install flag in deleted documents

* [minor] name will always be reset
2016-12-29 18:01:42 +05:30
Rushabh Mehta
7bc7e3bc63 Upgrade Font Awesome (#2410)
* Font-Awesome V3.x to V4.x

Font-Awesome V3.x to V4.x

* Font Tidy

Font Tidy

* FA4 Upgrade - Html Js & Json

FA4 Upgrade - Html Js & Json

* Minor

Minor
2016-12-05 13:07:03 +05:30
Rushabh Mehta
c10d7ec8cb [minor] add quick_entry and added icelandic language 2016-07-25 15:03:26 +05:30
Nabin Hait
5cb455ee43 Smallest Currency Fraction value and remainder function 2016-01-18 17:57:45 +05:30
Anand Doshi
df6471ee70 [fix] sort country by country_name 2015-12-16 12:43:26 +05:30
Anand Doshi
5621ba30c0 [enhancement] Int, Currency, Float, Percent as not null and default to 0 2015-11-19 13:09:44 +05:30
Rushabh Mehta
15c686f572 [fix] make all VARCHAR default lengths as 140 2015-10-14 17:28:10 +05:30
Anand Doshi
3c4f31a23c Limit varchar length to 140 instead of 255 to mitigate Row Size Too Large error 2015-10-14 16:00:14 +05:30