From ae835037fcd5a64d9baa55920e35d6f5353edc15 Mon Sep 17 00:00:00 2001 From: "Nicolas (vin)" Date: Fri, 10 Mar 2023 08:11:14 +0000 Subject: [PATCH] [FIX] account: no default taxes on accounts So fat, the default sale and purchase taxes were so on the account.accounts depending on the user type id. These taxes were meant to be used as default taxes on products and not accounts, so this is not right. It also is an issue since the default tax isn't visible on the COA list until the user add it from the optional fields. Task id # 3223731 closes odoo/odoo#116111 X-original-commit: f1a9414f3cbe83bfde7e401e90b641668bd0ca14 Signed-off-by: Florian Gilbert (flg) --- addons/account/models/account_account.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/account/models/account_account.py b/addons/account/models/account_account.py index ee1a09be546..5aba2064e1f 100644 --- a/addons/account/models/account_account.py +++ b/addons/account/models/account_account.py @@ -579,10 +579,6 @@ class AccountAccount(models.Model): def _onchange_account_type(self): if self.internal_group == 'off_balance': self.tax_ids = False - elif self.internal_group == 'income' and not self.tax_ids: - self.tax_ids = self.company_id.account_sale_tax_id - elif self.internal_group == 'expense' and not self.tax_ids: - self.tax_ids = self.company_id.account_purchase_tax_id def _split_code_name(self, code_name): # We only want to split the name on the first word if there is a digit in it