Commit graph

155 commits

Author SHA1 Message Date
Bob Schulze
9df41d9e8e
fix mapview display (#20187)
Co-authored-by: alias <dedaluk2>
2023-03-01 15:37:46 +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
5ece1d7c39
fix: Allow everyone to read geo data (#19451)
This is static data present in code, no need to apply permissions.

closes https://github.com/frappe/frappe/issues/19394
2023-01-02 12:01:32 +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
mergify[bot]
d3da57cee2
fix: Turkey number format corrected (#17886) (#17888)
(cherry picked from commit b0a808b2c4c156c8374664f32b8a1a0106eb3b90)

Co-authored-by: Türker Tunalı <turker.tunali@gmail.com>

[skip ci]
2022-08-20 19:51:04 +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
gavin
43f378d848
Merge branch 'develop' into mariadb-client-refactor 2022-07-07 16:00:38 +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
Gavin D'souza
71b5c77e6e Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-07-05 14:55:02 +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
Gavin D'souza
b4578dc632 Merge branch 'develop' of github.com:frappe/frappe into mariadb-client-refactor 2022-06-15 16:40:29 +05:30
Byju Abraham
9ffb0db80c
Fix: Change currency fraction for Singapore from Sen to Cent (#16987) 2022-05-25 15:14:31 +05:30
gavin
607a99f50b fix: F821 undefined name 'InternalError'
tx flake8
2022-05-24 19:19:53 +05:30
gavin
d3900485a6 refactor: Use mariadb client for creating connections
Move to use MariaDB's official Python client written in C instead of
the PyMySQL library. This change doesn't rid Frappe of the PyMySQL
library. Instead, it continues to utilize it for the ER module and
converter methods until the MariaDB library adds support for the same.

Ticket: https://jira.mariadb.org/projects/CONPY/issues/CONPY-203
2022-05-24 19:19:53 +05:30
chillaranand
25f82e966c refactor: Remove unused imports & code 2022-05-19 15:34:35 +05:30
Suraj Shetty
ccc82e2c4c
Merge pull request #15538 from noahjacob/phone_field_control
feat: Phone Control Type
2022-04-28 10:27:52 +05:30
Raffael Meyer
274d5e69ee
feat: add default date and time format for Germany (#16772) 2022-04-27 10:56:58 +05:30
Suraj Shetty
8f94cb655f
Merge branch 'develop' into phone_field_control 2022-04-19 16:28:18 +05:30
borgdb
289242a685
fix: Update default currency & date format for Malta. (#16630) 2022-04-18 14:09:19 +05:30
Noah Jacob
c2f2fc10e7 Merge branch develop into phone_field_control 2022-04-12 20:40:29 +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
Noah Jacob
b3076c67b8 chore: renamed iso to isd 2022-01-07 12:30:25 +05:30
Noah Jacob
eb314f2e95 chore: updated country_info.json with iso codes 2022-01-04 12:58:41 +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
barredterra
3f7469875d fix: default number format for germany 2021-04-29 15:34:46 +02:00
Raffael Meyer
322dcfdad0
fix: New currency symbol for Zimbabwe (#12308)
* fix: New currency symbol for Zimbabwe

* fix: re-run patch
2021-02-04 08:42:43 +05:30
Mathieu Brunot
7d490528f5
Merge branch 'develop' into feat/map-develop 2020-12-23 01:28:42 +01:00
Mathieu Brunot
90875ef21c
Update frappe/geo/utils.py
Co-authored-by: Prssanna Desai <prssud@gmail.com>
2020-11-26 02:26:57 +01:00
Deepesh Garg
dbd8f52e54 feat: Non negative check for Int, Float and Currency fields 2020-10-29 16:40:38 +05:30
mathieu.brunot
007e59184d
chore: Fix sider issues
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2020-10-24 03:03:16 +02:00
Kenneth Sequeira
09c625cc67
fix: Add default timezone for Laos (#11705) 2020-10-14 13:04:42 +05:30
mathieu.brunot
3c181bf2a2
Replace spaces by tabs
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2020-10-07 18:57:01 +02:00
Mathieu Brunot
ad313cf549
chore: Apply suggestions from code review
Co-authored-by: Prssanna Desai <prssud@gmail.com>
2020-10-07 18:12:03 +02:00
Mathieu Brunot
a22347d806
chore: Apply suggestions from code review
Co-authored-by: Prssanna Desai <prssud@gmail.com>
2020-10-07 18:10:18 +02:00
Emil
80857f6c90
Add tests
Signed-off-by: Emil <amionv99@gmail.com>
2020-08-14 14:52:57 +03:00
mathieu.brunot
e9b3085c6a
🎨 Split Geo Utils into specific functions
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
2020-08-12 17:19:35 +02:00
AminovE99
60153cb857
🚚 Rename function 2020-08-12 16:29:07 +03:00
AminovE99
be76942394
🔥 Remove debug print 2020-08-12 12:57:08 +03:00
AminovE99
32546694b7
📝 Update description
Co-authored-by: Mathieu Brunot <mathieu.brunot@monogramm.io>
2020-08-11 17:50:55 +03:00
AminovE99
f27eee1ce6
🐛 Only location or latitude and longitude 2020-08-11 17:30:36 +03:00
AminovE99
325d0e32c1
🎨 Changes from new requirements (python) 2020-08-11 17:20:03 +03:00
AminovE99
d4dd7e097a
🎨 Apply suggestions from code review
Co-authored-by: Mathieu Brunot <mathieu.brunot@monogramm.io>
2020-08-11 14:13:08 +03:00
AminovE99
6022ef74c8
Add Location type 2020-08-10 16:36:53 +03:00
Raffael Meyer
be8566e1ac
feat: add currency Congolese franc 2020-08-09 14:23:25 +02:00
AminovE99
da9c362a02
♻️ Review myself 2020-08-05 17:08:07 +03:00