From afee07cb91153ae47aa390db07e1a1debdf68148 Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Mon, 4 Nov 2019 12:34:16 +0000 Subject: [PATCH] [IMP] account: Remove dead code This field has been introduced by https://github.com/odoo/odoo/commit/2d1b8e9f3445ab0e1c1ac4683b7b5a25c867b2de but is no longer used anywhere and is not a valid field on account.move.line. --- addons/account/models/account_move.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 77e8a949384..1f8160007da 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -2943,12 +2943,6 @@ class AccountMoveLine(models.Model): # A constraint on account.tax.repartition.line ensures both those fields are mutually exclusive record.tax_line_id = rep_line.invoice_tax_id or rep_line.refund_tax_id - @api.depends('account_id.user_type_id') - def _compute_is_unaffected_earnings_line(self): - for record in self: - unaffected_earnings_type = self.env.ref("account.data_unaffected_earnings") - record.is_unaffected_earnings_line = unaffected_earnings_type == record.account_id.user_type_id - @api.depends('tag_ids', 'debit', 'credit', 'journal_id') def _compute_tax_audit(self): separator = ' '