Skip to content
Snippets Groups Projects
Commit aff7694c 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#75323

X-original-commit: 7ba56a2d
Signed-off-by: default avataroco-odoo <oco-odoo@users.noreply.github.com>
parent bf937eeb
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment