From fcdefc4f839265f2eaaa5117beedd66a65246070 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 1 Jul 2021 00:40:26 +0200 Subject: [PATCH] removing default_currency in fields --- InvenTree/common/models.py | 1 - InvenTree/company/forms.py | 1 - InvenTree/order/forms.py | 1 - InvenTree/order/models.py | 2 -- InvenTree/stock/models.py | 1 - 5 files changed, 6 deletions(-) diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 30940027ec..c8a5839f4e 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -745,7 +745,6 @@ class PriceBreak(models.Model): price = InvenTree.fields.InvenTreeModelMoneyField( max_digits=19, decimal_places=4, - default_currency=common.settings.currency_code_default, null=True, verbose_name=_('Price'), help_text=_('Unit price at specified quantity'), diff --git a/InvenTree/company/forms.py b/InvenTree/company/forms.py index c9497ab89f..564b5fab53 100644 --- a/InvenTree/company/forms.py +++ b/InvenTree/company/forms.py @@ -130,7 +130,6 @@ class EditSupplierPartForm(HelperForm): single_pricing = InvenTreeMoneyField( label=_('Single Price'), - default_currency=currency_code_default(), help_text=_('Single quantity price'), decimal_places=4, max_digits=19, diff --git a/InvenTree/order/forms.py b/InvenTree/order/forms.py index 3dd687c685..aa91e114eb 100644 --- a/InvenTree/order/forms.py +++ b/InvenTree/order/forms.py @@ -321,7 +321,6 @@ class OrderMatchItemForm(MatchItemForm): elif 'price' in col_guess.lower(): return InvenTreeMoneyField( label=_(col_guess), - default_currency=InvenTreeSetting.get_setting('INVENTREE_DEFAULT_CURRENCY'), decimal_places=5, max_digits=19, required=False, diff --git a/InvenTree/order/models.py b/InvenTree/order/models.py index 8e5c881ebd..c3e794c3e3 100644 --- a/InvenTree/order/models.py +++ b/InvenTree/order/models.py @@ -665,7 +665,6 @@ class PurchaseOrderLineItem(OrderLineItem): purchase_price = InvenTreeModelMoneyField( max_digits=19, decimal_places=4, - default_currency=currency_code_default(), null=True, blank=True, verbose_name=_('Purchase Price'), help_text=_('Unit purchase price'), @@ -717,7 +716,6 @@ class SalesOrderLineItem(OrderLineItem): sale_price = InvenTreeModelMoneyField( max_digits=19, decimal_places=4, - default_currency=currency_code_default(), null=True, blank=True, verbose_name=_('Sale Price'), help_text=_('Unit sale price'), diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index cab3ed0d1b..f485771017 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -534,7 +534,6 @@ class StockItem(MPTTModel): purchase_price = InvenTreeModelMoneyField( max_digits=19, decimal_places=4, - default_currency=currency_code_default(), blank=True, null=True, verbose_name=_('Purchase Price'),