07.02.26
This commit is contained in:
@@ -87,6 +87,10 @@ class MtmStrategy(ModelSQL, ModelView):
|
|||||||
'mtm.component', 'strategy', "Components"
|
'mtm.component', 'strategy', "Components"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def default_active(cls):
|
||||||
|
return True
|
||||||
|
|
||||||
def compute_mtm(self):
|
def compute_mtm(self):
|
||||||
pool = Pool()
|
pool = Pool()
|
||||||
Currency = pool.get('currency.currency')
|
Currency = pool.get('currency.currency')
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ class Purchase(metaclass=PoolMeta):
|
|||||||
|
|
||||||
if line.quantity_theorical:
|
if line.quantity_theorical:
|
||||||
OpenPosition = Pool().get('open.position')
|
OpenPosition = Pool().get('open.position')
|
||||||
OpenPosition.create_from_purchase_line(line)
|
# OpenPosition.create_from_purchase_line(line)
|
||||||
|
|
||||||
#line unit_price calculation
|
#line unit_price calculation
|
||||||
if line.price_type == 'basis' and line.lots: #line.price_pricing and line.price_components and
|
if line.price_type == 'basis' and line.lots: #line.price_pricing and line.price_components and
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
<field name="scenario"/>
|
<field name="scenario"/>
|
||||||
<label name="currency"/>
|
<label name="currency"/>
|
||||||
<field name="currency"/>
|
<field name="currency"/>
|
||||||
|
<label name="active"/>
|
||||||
|
<field name="active"/>
|
||||||
<newline/>
|
<newline/>
|
||||||
<field name="components" colspan="4"/>
|
<field name="components" colspan="4"/>
|
||||||
</form>
|
</form>
|
||||||
Reference in New Issue
Block a user