05.02.26
This commit is contained in:
@@ -109,11 +109,14 @@ class Fee(ModelSQL,ModelView):
|
||||
if line:
|
||||
if line.lots:
|
||||
qt = sum([e.get_current_quantity() for e in line.lots])
|
||||
logger.info("ON_CHANGE_WITH_QT0:%s",qt)
|
||||
if not qt:
|
||||
logger.info("ON_CHANGE_WITH_QT1:%s",qt)
|
||||
LotQt = Pool().get('lot.qt')
|
||||
lqts = LotQt.search(['lot_shipment_in','=',self.shipment_in.id])
|
||||
if lqts:
|
||||
qt = Decimal(lqts[0].lot_quantity)
|
||||
logger.info("ON_CHANGE_WITH_QT2:%s",qt)
|
||||
if self.mode != 'ppack':
|
||||
return qt
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user