summaryrefslogtreecommitdiff
path: root/odoo/fields.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-02-15 14:17:03 +0000
committerXavier Morel <xmo@odoo.com>2020-04-07 09:25:08 +0000
commit7d34a334a6460c35e826138af66a2d4179b2c3d0 (patch)
tree2d0f106154a271581fa075f7f302939e91f100e9 /odoo/fields.py
parent1b1b2142f163e323e2d73bec6b380272a9c42998 (diff)
[FIX] fields: add support for parameter `invisible` (actually used)
Diffstat (limited to 'odoo/fields.py')
-rw-r--r--odoo/fields.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/odoo/fields.py b/odoo/fields.py
index 9442e3c0595..0c321f90415 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -96,6 +96,8 @@ class Field(MetaField('DummyField', (object,), {})):
:param str help: the tooltip of the field seen by users
+ :param invisible: whether the field is invisible (boolean, by default ``False``)
+
:param bool readonly: whether the field is readonly (default: ``False``)
This only has an impact on the UI. Any field assignation in code will work
@@ -230,6 +232,7 @@ class Field(MetaField('DummyField', (object,), {})):
string = None # field label
help = None # field tooltip
+ invisible = False # whether the field is invisible
readonly = False # whether the field is readonly
required = False # whether the field is required
states = None # set readonly and required depending on state