From 75f3f633f26f8d9967da920f2f66a8600c2a7b60 Mon Sep 17 00:00:00 2001 From: Robin Baumgartner Date: Wed, 21 Mar 2012 08:37:56 +0100 Subject: [PATCH] Change sale line amount with unit issue2465 review257001 (transplanted from 9fdab254bc6e59c1a32fe2a841747dd75e26cb5b) --- sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sale.py b/sale.py index 77afaa7459..4a4cbe655c 100644 --- a/sale.py +++ b/sale.py @@ -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')