This commit is contained in:
2026-02-04 21:20:34 +01:00
parent 0a88b26160
commit a69a9dcb57
3 changed files with 11 additions and 10 deletions

View File

@@ -1931,12 +1931,12 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
elif fee[0].mode == 'ppack':
invoice_line.quantity = fee[0].quantity
else:
seq = 0
state_id = 0
LotQtType = Pool().get('lot.qt.type')
lqt = LotQtType.search([('name','=','BL')])
if lqt:
seq = lqt[0].sequence
invoice_line.quantity = fee[0].get_fee_lots_qt(seq)
state_id = lqt[0].id
invoice_line.quantity = fee[0].get_fee_lots_qt(state_id)
lines.append(invoice_line)
logger.info("GETINVLINE:%s",self.product.type)