Change sale line amount with unit
issue2465 review257001 (transplanted from 9fdab254bc6e59c1a32fe2a841747dd75e26cb5b)
This commit is contained in:
@@ -1088,7 +1088,7 @@ class SaleLine(ModelSQL, ModelView):
|
||||
states={
|
||||
'invisible': ~Eval('type').in_(['line', 'subtotal']),
|
||||
'readonly': ~Eval('_parent_sale'),
|
||||
}, on_change_with=['type', 'quantity', 'unit_price',
|
||||
}, on_change_with=['type', 'quantity', 'unit_price', 'unit',
|
||||
'_parent_sale.currency'],
|
||||
depends=['type']), 'get_amount')
|
||||
description = fields.Text('Description', size=None, required=True)
|
||||
|
||||
Reference in New Issue
Block a user