07.02.26
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user