mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
'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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user