[FIX] account: duplicate tax

the duplication of a tax must duplicate the child_ids.

opw:630510
This commit is contained in:
Goffin Simon 2015-03-17 15:44:13 +01:00
parent 7b923b57ba
commit 6f679678f6
1 changed files with 1 additions and 1 deletions

View File

@ -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)'),