02.02.26
This commit is contained in:
@@ -856,7 +856,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.generate(lot.line)
|
Pnl.generate(lot.line if lot.line else lot.sale_line)
|
||||||
if sh.sof:
|
if sh.sof:
|
||||||
for sof in sh.sof:
|
for sof in sh.sof:
|
||||||
if sof.chart:
|
if sof.chart:
|
||||||
|
|||||||
@@ -331,8 +331,6 @@ class ValuationBase(ModelSQL):
|
|||||||
Date = Pool().get('ir.date')
|
Date = Pool().get('ir.date')
|
||||||
Valuation = Pool().get('valuation.valuation')
|
Valuation = Pool().get('valuation.valuation')
|
||||||
ValuationLine = Pool().get('valuation.valuation.line')
|
ValuationLine = Pool().get('valuation.valuation.line')
|
||||||
if not line:
|
|
||||||
pass
|
|
||||||
Valuation.delete(Valuation.search([
|
Valuation.delete(Valuation.search([
|
||||||
('line', '=', line.id),
|
('line', '=', line.id),
|
||||||
('date', '=', Date.today()),
|
('date', '=', Date.today()),
|
||||||
|
|||||||
Reference in New Issue
Block a user