From 3754280a05a5a929551e4f4faffc7f15b3fc5c94 Mon Sep 17 00:00:00 2001 From: mreficent Date: Thu, 22 Mar 2018 11:26:03 +0100 Subject: [PATCH] [FIX] account: don't require a company in tax_templates We want to force the tax template to be blank always, because multiple companies can potentially use this template to create taxes. We want consistency company-wise. --- addons/account/models/chart_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/chart_template.py b/addons/account/models/chart_template.py index 428617a5489..f2e5183eee0 100644 --- a/addons/account/models/chart_template.py +++ b/addons/account/models/chart_template.py @@ -510,7 +510,7 @@ class AccountTaxTemplate(models.Model): amount_type = fields.Selection(default='percent', string="Tax Computation", required=True, selection=[('group', 'Group of Taxes'), ('fixed', 'Fixed'), ('percent', 'Percentage of Price'), ('division', 'Percentage of Price Tax Included')]) active = fields.Boolean(default=True, help="Set active to false to hide the tax without removing it.") - company_id = fields.Many2one('res.company', string='Company', required=True, default=lambda self: self.env.user.company_id) + company_id = fields.Many2one('res.company', string='Company') children_tax_ids = fields.Many2many('account.tax.template', 'account_tax_template_filiation_rel', 'parent_tax', 'child_tax', string='Children Taxes') sequence = fields.Integer(required=True, default=1, help="The sequence field is used to define order in which the tax lines are applied.")