diff --git a/addons/account/models/account_tax.py b/addons/account/models/account_tax.py index 17f61f4ef18..41815fe5c4c 100644 --- a/addons/account/models/account_tax.py +++ b/addons/account/models/account_tax.py @@ -455,7 +455,11 @@ class AccountTax(models.Model): for tax in self: if not tax._check_m2m_recursion('children_tax_ids'): raise ValidationError(_("Recursion found for tax %r.", tax.name)) - if any(child.type_tax_use not in ('none', tax.type_tax_use) or child.tax_scope != tax.tax_scope for child in tax.children_tax_ids): + if any( + child.type_tax_use not in ('none', tax.type_tax_use) + or child.tax_scope not in (tax.tax_scope, False) + for child in tax.children_tax_ids + ): raise ValidationError(_('The application scope of taxes in a group must be either the same as the group or left empty.')) @api.constrains('company_id')