This commit is contained in:
2026-02-07 19:31:54 +01:00
parent 9095f3b470
commit 34166dedc6
3 changed files with 7 additions and 1 deletions

View File

@@ -87,6 +87,10 @@ class MtmStrategy(ModelSQL, ModelView):
'mtm.component', 'strategy', "Components"
)
@classmethod
def default_active(cls):
return True
def compute_mtm(self):
pool = Pool()
Currency = pool.get('currency.currency')

View File

@@ -380,7 +380,7 @@ class Purchase(metaclass=PoolMeta):
if line.quantity_theorical:
OpenPosition = Pool().get('open.position')
OpenPosition.create_from_purchase_line(line)
# OpenPosition.create_from_purchase_line(line)
#line unit_price calculation
if line.price_type == 'basis' and line.lots: #line.price_pricing and line.price_components and

View File

@@ -5,6 +5,8 @@
<field name="scenario"/>
<label name="currency"/>
<field name="currency"/>
<label name="active"/>
<field name="active"/>
<newline/>
<field name="components" colspan="4"/>
</form>