05.01.26
This commit is contained in:
@@ -573,14 +573,8 @@ class ShipmentIn(metaclass=PoolMeta):
|
||||
Lot.save([lot])
|
||||
#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)
|
||||
for lot in lots:
|
||||
Pnl.generate(lot.line)
|
||||
if sh.sof:
|
||||
for sof in sh.sof:
|
||||
if sof.chart:
|
||||
|
||||
Reference in New Issue
Block a user