From 6f679678f638b835e00299fc7aa9903a7688a583 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 17 Mar 2015 15:44:13 +0100 Subject: [PATCH] [FIX] account: duplicate tax the duplication of a tax must duplicate the child_ids. opw:630510 --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index 2c883396171..3aa17901e6e 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1877,7 +1877,7 @@ class account_tax(osv.osv): 'account_analytic_collected_id':fields.many2one('account.analytic.account', 'Invoice Tax Analytic Account', help="Set the analytic account that will be used by default on the invoice tax lines for invoices. Leave empty if you don't want to use an analytic account on the invoice tax lines by default."), 'account_analytic_paid_id':fields.many2one('account.analytic.account', 'Refund Tax Analytic Account', help="Set the analytic account that will be used by default on the invoice tax lines for refunds. Leave empty if you don't want to use an analytic account on the invoice tax lines by default."), 'parent_id':fields.many2one('account.tax', 'Parent Tax Account', select=True), - 'child_ids':fields.one2many('account.tax', 'parent_id', 'Child Tax Accounts'), + 'child_ids':fields.one2many('account.tax', 'parent_id', 'Child Tax Accounts', copy=True), 'child_depend':fields.boolean('Tax on Children', help="Set if the tax computation is based on the computation of child taxes rather than on the total amount."), 'python_compute':fields.text('Python Code'), 'python_compute_inv':fields.text('Python Code (reverse)'),