From f7f2e9312ae0d0f19466b4ef97f940c361d8f7f4 Mon Sep 17 00:00:00 2001 From: Ali <010109ali@gmail.com> Date: Tue, 4 Mar 2025 20:12:45 +0400 Subject: [PATCH] Added fixtures for currency --- az_locale/fixtures/currency.json | 13 +++++++++++++ az_locale/hooks.py | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 az_locale/fixtures/currency.json diff --git a/az_locale/fixtures/currency.json b/az_locale/fixtures/currency.json new file mode 100644 index 0000000..277caf9 --- /dev/null +++ b/az_locale/fixtures/currency.json @@ -0,0 +1,13 @@ +[ + { + "doctype": "Currency", + "name": "AZN", + "currency_name": "Azerbaijani Manat", + "symbol": "₼", + "fraction": "Qəpik", + "fraction_units": 100, + "smallest_currency_fraction_value": 0.01, + "number_format": "#,###.##", + "enabled": 1 + } +] diff --git a/az_locale/hooks.py b/az_locale/hooks.py index 4401702..d207a49 100644 --- a/az_locale/hooks.py +++ b/az_locale/hooks.py @@ -7,6 +7,8 @@ app_license = "unlicense" after_install = "az_locale.install.after_install" +fixtures = ["fixtures/currency.json"] + # Apps # ------------------