Dev adjusted by Prod #2
@@ -574,13 +574,7 @@ class ShipmentIn(metaclass=PoolMeta):
|
||||
#update line valuation
|
||||
Pnl = Pool().get('valuation.valuation')
|
||||
for lot in lots:
|
||||
pnl = Pnl.search([('line','=',lot.line.id)])
|
||||
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)
|
||||
Pnl.generate(lot.line)
|
||||
if sh.sof:
|
||||
for sof in sh.sof:
|
||||
if sof.chart:
|
||||
|
||||
Reference in New Issue
Block a user