2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

use the default currency in forms

This commit is contained in:
2021-06-05 13:22:11 +02:00
parent 92f77b6bbb
commit d87592aedb
4 changed files with 11 additions and 6 deletions

View File

@ -20,6 +20,8 @@ from django.contrib.auth.models import User
from django.db.models.signals import pre_delete
from django.dispatch import receiver
from common.settings import currency_code_default
from markdownx.models import MarkdownxField
from mptt.models import MPTTModel, TreeForeignKey
@ -534,7 +536,7 @@ class StockItem(MPTTModel):
purchase_price = MoneyField(
max_digits=19,
decimal_places=4,
default_currency='USD',
default_currency=currency_code_default(),
blank=True,
null=True,
verbose_name=_('Purchase Price'),