10.03.26
This commit is contained in:
@@ -454,16 +454,16 @@ class Fee(ModelSQL,ModelView):
|
||||
FeeLots = Pool().get('fee.lots')
|
||||
Lots = Pool().get('lot.lot')
|
||||
LotQt = Pool().get('lot.qt')
|
||||
if fee.line:
|
||||
for l in fee.line.lots:
|
||||
if (l.lot_type == 'virtual' and len(fee.line.lots)==1) or (l.lot_type == 'physic' and len(fee.line.lots)>1):
|
||||
fl = FeeLots()
|
||||
fl.fee = fee.id
|
||||
fl.lot = l.id
|
||||
fl.line = l.line.id
|
||||
FeeLots.save([fl])
|
||||
qt_line += l.get_current_quantity_converted()
|
||||
unit = l.line.unit
|
||||
# if fee.line:
|
||||
# for l in fee.line.lots:
|
||||
# if (l.lot_type == 'virtual' and len(fee.line.lots)==1) or (l.lot_type == 'physic' and len(fee.line.lots)>1):
|
||||
# fl = FeeLots()
|
||||
# fl.fee = fee.id
|
||||
# fl.lot = l.id
|
||||
# fl.line = l.line.id
|
||||
# FeeLots.save([fl])
|
||||
# qt_line += l.get_current_quantity_converted()
|
||||
# unit = l.line.unit
|
||||
if fee.sale_line:
|
||||
for l in fee.sale_line.lots:
|
||||
if (l.lot_type == 'virtual' and len(fee.sale_line.lots)==1) or (l.lot_type == 'physic' and len(fee.sale_line.lots)>1):
|
||||
|
||||
Reference in New Issue
Block a user