diff --git a/modules/purchase_trade/__pycache__/pricing.cpython-314.pyc b/modules/purchase_trade/__pycache__/pricing.cpython-314.pyc index 89008ea..10d6cd1 100644 Binary files a/modules/purchase_trade/__pycache__/pricing.cpython-314.pyc and b/modules/purchase_trade/__pycache__/pricing.cpython-314.pyc differ diff --git a/modules/purchase_trade/pricing.py b/modules/purchase_trade/pricing.py index ee4cdfa..b1dfb85 100755 --- a/modules/purchase_trade/pricing.py +++ b/modules/purchase_trade/pricing.py @@ -228,7 +228,7 @@ class ImportPrices(Wizard): } references = [ ('price_type', 'price.fixtype', [('name', '=', 'Market price')]), - ('price_currency', 'currency.currency', [('code', '=', 'USD')]), + ('price_currency', 'currency.currency', [('name', '=', 'USD')]), ('price_calendar', 'price.calendar', [('name', '=', 'Argus EU')]), ('price_unit', 'product.uom', [('name', '=', 'Mt')]), ] diff --git a/modules/purchase_trade/tests/__pycache__/test_module.cpython-314.pyc b/modules/purchase_trade/tests/__pycache__/test_module.cpython-314.pyc index 6eb3aa3..82b576a 100644 Binary files a/modules/purchase_trade/tests/__pycache__/test_module.cpython-314.pyc and b/modules/purchase_trade/tests/__pycache__/test_module.cpython-314.pyc differ diff --git a/modules/purchase_trade/tests/test_module.py b/modules/purchase_trade/tests/test_module.py index d1ef93e..93b6ae5 100644 --- a/modules/purchase_trade/tests/test_module.py +++ b/modules/purchase_trade/tests/test_module.py @@ -112,7 +112,7 @@ class PurchaseTradeTestCase(ModuleTestCase): 'price.fixtype': _FakeRecordModel([ SimpleNamespace(id=10, name='Market price')]), 'currency.currency': _FakeRecordModel([ - SimpleNamespace(id=20, code='USD')]), + SimpleNamespace(id=20, name='USD')]), 'price.calendar': _FakeRecordModel([ SimpleNamespace(id=30, name='Argus EU')]), 'product.uom': _FakeRecordModel([ @@ -147,7 +147,7 @@ class PurchaseTradeTestCase(ModuleTestCase): 'price.fixtype': _FakeRecordModel([ SimpleNamespace(id=10, name='Market price')]), 'currency.currency': _FakeRecordModel([ - SimpleNamespace(id=20, code='USD')]), + SimpleNamespace(id=20, name='USD')]), 'price.calendar': _FakeRecordModel([ SimpleNamespace(id=30, name='Argus EU')]), 'product.uom': _FakeRecordModel([