Skip to content
Snippets Groups Projects
Commit 7ba56a2d authored by Bhavesh Odedra's avatar Bhavesh Odedra
Browse files

[FIX] account: check if tax name on copy method

With this commit, it will check if the tax name is given by external method and take that name if any.

For example,
vals = {'rate': 5.2, 'name': 'Odoo New Tax'}
tax_template = self.env['account.tax'].search(domain, limit=1)
new_tax = tax_template.copy(default=vals)

Current Behavior:
new_tax.name => 'Odoo New Tax (Copy)'

Instead of 'Odoo New tax'

closes odoo/odoo#74722

Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
parent a1f4cc03
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment