Compare commits
3 Commits
cad3d04d08
...
dbb488ba52
| Author | SHA1 | Date | |
|---|---|---|---|
| dbb488ba52 | |||
| 49d2438ea0 | |||
| 92ba297bb7 |
@@ -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