From b2c321fd1f86a8cb6329e75e6306a657caf17987 Mon Sep 17 00:00:00 2001 From: auyeung112002 Date: Tue, 28 Nov 2017 11:48:47 +0800 Subject: [PATCH] [FIX] account: dummy_account_is should be readonly Setting dummy_account_id to readonly avoid the journal entry items being wrongly set automatically. --- addons/account/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 8a28cf10b4e..27a908a432f 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -100,7 +100,7 @@ class AccountMove(models.Model): matched_percentage = fields.Float('Percentage Matched', compute='_compute_matched_percentage', digits=0, store=True, readonly=True, help="Technical field used in cash basis method") statement_line_id = fields.Many2one('account.bank.statement.line', index=True, string='Bank statement line reconciled with this entry', copy=False, readonly=True) # Dummy Account field to search on account.move by account_id - dummy_account_id = fields.Many2one('account.account', related='line_ids.account_id', string='Account', store=False) + dummy_account_id = fields.Many2one('account.account', related='line_ids.account_id', string='Account', store=False, readonly=True) @api.model def fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False):