Merge pull request 'Dev adjusted by Prod' (#2) from main into dev
Reviewed-on: https://srv413259.hstgr.cloud/admin/tradon/pulls/2
This commit was merged in pull request #2.
This commit is contained in:
@@ -574,13 +574,7 @@ class ShipmentIn(metaclass=PoolMeta):
|
|||||||
#update line valuation
|
#update line valuation
|
||||||
Pnl = Pool().get('valuation.valuation')
|
Pnl = Pool().get('valuation.valuation')
|
||||||
for lot in lots:
|
for lot in lots:
|
||||||
pnl = Pnl.search([('line','=',lot.line.id)])
|
Pnl.generate(lot.line)
|
||||||
if pnl:
|
|
||||||
Pnl.delete(pnl)
|
|
||||||
pnl_lines = []
|
|
||||||
pnl_lines.extend(lot.line.get_pnl_fee_lines())
|
|
||||||
pnl_lines.extend(lot.line.get_pnl_price_lines())
|
|
||||||
Pnl.save(pnl_lines)
|
|
||||||
if sh.sof:
|
if sh.sof:
|
||||||
for sof in sh.sof:
|
for sof in sh.sof:
|
||||||
if sof.chart:
|
if sof.chart:
|
||||||
|
|||||||
Reference in New Issue
Block a user