diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index f905120..24af301 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -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):