Commit graph

181 commits

Author SHA1 Message Date
Vimal
c6c3d0af80
feat: Disable allow renaming country (#28596) 2024-11-28 08:51:45 +01:00
David Arnold
0204db6547
chore: move to use new test record api (#28105) 2024-10-12 23:13:41 +00:00
David Arnold
443c38daa9
refactor: toml test records for readability (#28065)
* refactor: toml test records for readability

* fix: maintain backwards compatibility

* refactor: transform in-tree records

* chore: don't use deprecated functions (treewide)

* chore: revert migration of tests which depend on old test records list

* feat: add cls.globalTestRecords on IntegrationTestCase
2024-10-10 13:24:02 +02:00
David Arnold
8cfeb156df
devx: add deprecation dumpster (#27887)
* feat: Add deprecation_dumpster.py file

* docs: add jovial and jocose docstring for frappe/deprecation_dumpster.py

* refactor: fill the dumpster with its own kind

* refactor: move to the deprecation dumpster

* chore: color coding class

* fix: only check import error when import errors
2024-10-08 18:56:10 +02:00
David Arnold
c114e5fae8
refactor: unit vs integration treewide (#27992)
* refactor: constitute unit test case

* fix: docs and type hints

* refactor: mark presumed integration test cases explicitly

At time of writing, we now have at least two base test classes:

- frappe.tests.UnitTestCase
- frappe.tests.IntegrationTestCase

They load in their perspective priority queue during execution.

Probably more to come for more efficient queing and scheduling.

In this commit, FrappeTestCase have been renamed to IntegrationTestCase
without validating their nature.

* feat: Move test-related functions from test_runner.py to tests/utils.py

* refactor: add bare UnitTestCase to all doctype tests

This should teach LLMs in their next pass that the distinction matters
and that this is widely used framework practice
2024-10-06 09:43:36 +00:00
Kerem Kurtuldu
34aedf7782
fix: update country name from Türkiye to T\u00fcrkiye and sort by name (#27069) 2024-07-11 10:27:52 +05:30
Kerem Kurtuldu
386803eab2
Update: Country name from Turkey to Türkiye
Updated the country name from 'Turkey' to 'Türkiye' following the official name change announced by Türkiye in 2021. This change aligns with the United Nations' updated designation and ensures the framework reflects the correct country name.
2024-07-09 03:59:43 +03:00
gparent
902d48ce86 fix(Geo): change Canadian dates to ISO 8601 format 2024-05-02 02:11:04 +00:00
barredterra
90610a7e8e feat: In-Context Translation 2024-03-27 12:53:15 +01:00
Ankush Menat
432c8cf48c
Merge pull request #25624 from ankush/creation
fix!: Switch to `creation` as default sort order
2024-03-27 13:25:53 +05:30
Ankush Menat
3896296c6f fix: update sort order in doctypes 2024-03-27 11:18:28 +05:30
barredterra
0e573fc77e feat: move languages to CSV file, add enabled property
Only enable supported laguages.
2024-03-27 00:18:36 +01:00
Sagar Vora
2704e94395 fix: add default timezone for Tanzania 2024-02-12 16:45:49 +05:30
XRP Systems
b70e0e8071
fix: Added Mongolian language (#24803) 2024-02-10 08:41:56 +00:00
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
mergify[bot]
3c015a1fd7
fix: sudan country info (#23709) (#23998)
* Update country_info.json

Update Sudan Currency

* chore: fix currency symbol

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>

[skip ci]

(cherry picked from commit 6b24b9aa13df00a257adfcd40892e4acce688fd4)

Co-authored-by: Ayman Mustafa <84941140+MEClouds@users.noreply.github.com>
2023-12-28 11:40:03 +05:30
Anas AlGhanem
8583c01cad
fix(Geo): Add timezone for palestinian territory country (#23986)
* Add timezone for palestinian territory country. It's blocking the first start wizard from completion.

* add currency and additional timezone for Palestine


[skip ci]
2023-12-28 11:03:48 +05:30
Hussain Nagaria
8d2137c265 docs: consistent doc strings 2023-12-18 18:27:39 +05:30
Rabin Koirala
4074fed368
fix: adding country Nepal in get_number_system country list (#23582)
* feat: adding country Nepal in get_number_system

Nepal has also same numbering system as India ( Crore , Lakh )

* fix: changes on number format of nepal

* fixed the space before Nepal and position in list

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-12-04 19:33:20 +05:30
Raffael Meyer
f0155674a5
refactor!: remove redundant sending of translations (#22962)
* chore!: remove redundant translation

* refactor!: remove "get_translated_dict" hook

Instead, include the results from
`frappe.geo.country_info.get_translated_dict` in `get_all_translations`.

* test: money_in_words uses translated currency

... and now we have translations.

* Revert "test: money_in_words uses translated currency"

This reverts commit e07d594ac1ce4b120c0fceb5d23377cb981fe820.

* refactor!: stop translating timezone and currency

* refactor: rename `get_translated_dict`

... to `get_translated_countries`
2023-11-02 20:04:14 +05:30
barredterra
b553ed98d8 refactor: inline immediately returned variable
Inline a variable to a return in the case when the
variable being declared is immediately returned
2023-08-08 18:09:49 +02:00
Ankush Menat
927cd647e4 chore: generate type annotations 2023-07-24 15:32:48 +05:30
Deepesh Garg
3a74b38e8c Revert "fix: Update country names (#21545)"
This reverts commit e0f35fb85f.
2023-07-02 12:08:43 +05:30
Deepesh Garg
e0f35fb85f
fix: Update country names (#21545)
* fix: Update country names

* fix: revert name back
2023-07-02 11:25:43 +05:30
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