summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-04-01 13:02:38 +0000
committerwan <wan@odoo.com>2019-04-01 13:02:38 +0000
commit5eaa4f2967e88f9f619bfc95e82d89fbfcd03ed0 (patch)
tree3f8099754003ee5fdee986f39f15283cc70d51f7
parent92685d33a5d55838562524c60dd544ee34fd82ef (diff)
[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 <smetl@users.noreply.github.com>
-rw-r--r--addons/account/models/account_move.py1
1 files changed, 0 insertions, 1 deletions
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")