removing default_currency in fields

This commit is contained in:
Matthias 2021-07-01 00:40:26 +02:00
parent e2278fc261
commit fcdefc4f83
5 changed files with 0 additions and 6 deletions

View File

@ -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'),

View File

@ -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,

View File

@ -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,

View File

@ -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'),

View File

@ -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'),