15.02.26
This commit is contained in:
@@ -284,9 +284,9 @@ class ValuationBase(ModelSQL):
|
|||||||
Currency = Pool().get('currency.currency')
|
Currency = Pool().get('currency.currency')
|
||||||
FeeLots = Pool().get('fee.lots')
|
FeeLots = Pool().get('fee.lots')
|
||||||
#if line is matched with sale_line we should add the open sale side
|
#if line is matched with sale_line we should add the open sale side
|
||||||
sale_lines = line.get_matched_lines()
|
sale_lines = line.get_matched_lines() or []
|
||||||
sale_open_lots = [s.lot_s for s in sale_lines]
|
sale_open_lots = tuple(s.lot_s for s in sale_lines if s.lot_s)
|
||||||
all_lots = (line.lots or []) + sale_open_lots
|
all_lots = (line.lots or ()) + sale_open_lots
|
||||||
for lot in all_lots:
|
for lot in all_lots:
|
||||||
fl = FeeLots.search([('lot', '=', lot.id)])
|
fl = FeeLots.search([('lot', '=', lot.id)])
|
||||||
if not fl:
|
if not fl:
|
||||||
|
|||||||
Reference in New Issue
Block a user