[IMP] base: required field (from view python expr) are add automatically
related to odoo/odoo#137031 closes odoo/documentation#6115 Related: odoo/enterprise#48832 Related: odoo/upgrade#5861 Signed-off-by: Raphael Collet <rco@odoo.com>
This commit is contained in:
parent
2ab5bb32c8
commit
644cbd052f
@ -1456,7 +1456,6 @@ The `field` element can have the following attributes:
|
|||||||
<tree>
|
<tree>
|
||||||
<field name="name" string="My Custom Name"/>
|
<field name="name" string="My Custom Name"/>
|
||||||
<field name="amount" sum="Total"/>
|
<field name="amount" sum="Total"/>
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
<field name="currency_id"/>
|
<field name="currency_id"/>
|
||||||
<field name="tax_id"/>
|
<field name="tax_id"/>
|
||||||
</tree>
|
</tree>
|
||||||
@ -1847,7 +1846,6 @@ The `field` element can have the following attributes:
|
|||||||
<search>
|
<search>
|
||||||
<field name="name" string="My Custom Name"/>
|
<field name="name" string="My Custom Name"/>
|
||||||
<field name="amount"/>
|
<field name="amount"/>
|
||||||
<field name="company_id" invisible="1"/>
|
|
||||||
<field name="currency_id"/>
|
<field name="currency_id"/>
|
||||||
<field name="ref" filter_domain="[('name', 'like', self)]"/>
|
<field name="ref" filter_domain="[('name', 'like', self)]"/>
|
||||||
</search>
|
</search>
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
.. code-block:: xml
|
.. code-block:: xml
|
||||||
|
|
||||||
<field name="fname_a" invisible="True"/> <!-- necessary to evaluate invisible attribute of 'fname_b' field -->
|
|
||||||
<field name="fname_b" invisible="fname_c != 3 and fname_a == parent.fname_d"/>
|
<field name="fname_b" invisible="fname_c != 3 and fname_a == parent.fname_d"/>
|
||||||
<group invisible="fname_c != 4">
|
<group invisible="fname_c != 4">
|
||||||
<field name="fname_c"/>
|
<field name="fname_c"/>
|
||||||
|
@ -293,7 +293,6 @@ gives the condition in which the property applies. For example:
|
|||||||
|
|
||||||
<form>
|
<form>
|
||||||
<field name="description" invisible="not is_partner"/>
|
<field name="description" invisible="not is_partner"/>
|
||||||
<field name="is_partner" invisible="True"/>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
This means that the ``description`` field is invisible when ``is_partner`` is ``False``. It is
|
This means that the ``description`` field is invisible when ``is_partner`` is ``False``. It is
|
||||||
@ -357,7 +356,6 @@ complete list):
|
|||||||
|
|
||||||
<tree decoration-success="is_partner==True">
|
<tree decoration-success="is_partner==True">
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="is_partner" invisible="1"/>
|
|
||||||
</tree>
|
</tree>
|
||||||
|
|
||||||
The records where ``is_partner`` is ``True`` will be displayed in green.
|
The records where ``is_partner`` is ``True`` will be displayed in green.
|
||||||
|
Loading…
Reference in New Issue
Block a user