Change sale line amount with unit

issue2465
review257001
(transplanted from 9fdab254bc6e59c1a32fe2a841747dd75e26cb5b)
This commit is contained in:
Robin Baumgartner
2012-03-21 08:37:56 +01:00
parent df4cadfcea
commit 5fc211ef04
+1 -1
View File
@@ -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)