From 4e1cb139f1a675786840c99f0d66eefac945ebb8 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Tue, 18 Nov 2014 14:34:20 +0100 Subject: [PATCH] 'invisible' is not propagated from the model to the view Anyway, set the field readonly is better than invisible because it is still interesting to see this value even if it cannot be changed --- account_compute_tax_amount/account_move_line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_compute_tax_amount/account_move_line.py b/account_compute_tax_amount/account_move_line.py index be4fc11d2..ebac177a3 100644 --- a/account_compute_tax_amount/account_move_line.py +++ b/account_compute_tax_amount/account_move_line.py @@ -27,8 +27,8 @@ from openerp import models, fields, api class AccountMoveLine(models.Model): _inherit = "account.move.line" - # We set the tax_amount invisible, because we recompute it in every case. - tax_amount = fields.Float(invisible=True) + # We set the tax_amount readonly, because we recompute it in every case. + tax_amount = fields.Float(readonly=True) @api.one def force_compute_tax_amount(self):