From dce316f00600ea0fc1c5eec1a36df59004933e3c Mon Sep 17 00:00:00 2001 From: tdi-odoo Date: Wed, 14 Sep 2016 10:39:42 +0200 Subject: [PATCH] [FIX] account: fix tax copy() --- addons/account/models/account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 69782d2ea58..babeed24537 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -596,6 +596,7 @@ class AccountTax(models.Model): raise ValidationError(_('The application scope of taxes in a group must be either the same as the group or "None".')) @api.one + @api.returns('self', lambda value: value.id) def copy(self, default=None): default = dict(default or {}, name=_("%s (Copy)") % self.name) return super(AccountTax, self).copy(default=default)