05.01.26
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user