This commit is contained in:
2026-01-05 13:16:06 +01:00
parent e5056c6ea1
commit c42edc4efd

View File

@@ -1685,7 +1685,7 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
@fields.depends( @fields.depends(
'type', 'quantity', 'unit_price', 'type', 'quantity', 'unit_price',
'purchase', '_parent_purchase.currency') 'purchase', '_parent_purchase.currency','premium')
def on_change_with_amount(self): def on_change_with_amount(self):
if (self.type == 'line' if (self.type == 'line'
and self.quantity is not None and self.quantity is not None