Change purchase line with amount

issue2465
review257001
This commit is contained in:
Robin Baumgartner committed 2012-03-21 08:47:42 +01:00
1 parent 6ffab824fe
commit 8831954f71
1 file changed
+1 -1
+1 -1
View File
@@ -981,7 +981,7 @@ class PurchaseLine(ModelSQL, ModelView):
states={
'invisible': ~Eval('type').in_(['line', 'subtotal']),
'readonly': ~Eval('_parent_purchase'),
}, on_change_with=['type', 'quantity', 'unit_price',
}, on_change_with=['type', 'quantity', 'unit_price', 'unit',
'_parent_purchase.currency'],
depends=['type']), 'get_amount')
description = fields.Text('Description', size=None, required=True)