From 5eaa4f2967e88f9f619bfc95e82d89fbfcd03ed0 Mon Sep 17 00:00:00 2001 From: wan Date: Mon, 1 Apr 2019 13:02:38 +0000 Subject: [PATCH] [IMP] account: remove user_type_id OPW 1961781 The related field user_type_id on account.move.line was slowing down the ORW when whanging the type of an account. This field was almost never used except in account_reports. closes odoo/odoo#32303 Signed-off-by: Laurent Smet --- addons/account/models/account_move.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 7c9884fc69f..b9c82492446 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -678,7 +678,6 @@ class AccountMoveLine(models.Model): # TODO: put the invoice link and partner_id on the account_move invoice_id = fields.Many2one('account.invoice', oldname="invoice") partner_id = fields.Many2one('res.partner', string='Partner', ondelete='restrict') - user_type_id = fields.Many2one('account.account.type', related='account_id.user_type_id', index=True, store=True, oldname="user_type", readonly=True) tax_exigible = fields.Boolean(string='Appears in VAT report', default=True, help="Technical field used to mark a tax line as exigible in the vat report or not (only exigible journal items are displayed). By default all new journal items are directly exigible, but with the feature cash_basis on taxes, some will become exigible only when the payment is recorded.") parent_state = fields.Char(compute="_compute_parent_state", help="State of the parent account.move")