Change sale line amount with unit

issue2465
review257001
(transplanted from 9fdab254bc6e59c1a32fe2a841747dd75e26cb5b)
This commit is contained in:
Robin Baumgartner committed 2012-03-21 08:37:56 +01:00
1 parent 73aef17242
commit 75f3f633f2
1 file changed
+1 -1
+1 -1
View File
@@ -1005,7 +1005,7 @@ class SaleLine(ModelSQL, ModelView):
states={
'invisible': Not(In(Eval('type'), ['line', 'subtotal'])),
'readonly': Not(Bool(Eval('_parent_sale'))),
}, on_change_with=['type', 'quantity', 'unit_price',
}, on_change_with=['type', 'quantity', 'unit_price', 'unit',
'_parent_sale.currency']), 'get_amount')
description = fields.Text('Description', size=None, required=True)
note = fields.Text('Note')