main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit 10aaff4cc8 - Show all commits

View File

@@ -856,7 +856,7 @@ class ShipmentIn(metaclass=PoolMeta):
#update line valuation
Pnl = Pool().get('valuation.valuation')
for lot in lots:
Pnl.generate(lot.line)
Pnl.generate(lot.line if lot.line else lot.sale_line)
if sh.sof:
for sof in sh.sof:
if sof.chart:

View File

@@ -331,8 +331,6 @@ class ValuationBase(ModelSQL):
Date = Pool().get('ir.date')
Valuation = Pool().get('valuation.valuation')
ValuationLine = Pool().get('valuation.valuation.line')
if not line:
pass
Valuation.delete(Valuation.search([
('line', '=', line.id),
('date', '=', Date.today()),