[FIX] base: revert 19e401a for title on res.partner form

The title of the partner is restricted with a context that will change in the onchange_type. Having twice the same field will not work well.
Remove the invisible attribute as the domain is handled by the domain.
This commit is contained in:
Martin Trigaux 2014-08-13 14:59:37 +02:00
parent 1a7c8953fe
commit bceb278199
1 changed files with 1 additions and 3 deletions

View File

@ -31,7 +31,6 @@
<group col="4">
<field name="name"/>
<field name="shortcut"/>
<field name="domain"/>
</group>
</form>
</field>
@ -180,8 +179,7 @@
<field name="mobile"/>
<field name="fax"/>
<field name="email" widget="email"/>
<field name="title" domain="[('domain','=','contact')]" options='{"no_open": True}' attrs="{'invisible': [('is_company','=',True)]}" context="{'default_domain': 'contact'}"/>
<field name="title" domain="[('domain','=','partner')]" options='{"no_open": True}' attrs="{'invisible': [('is_company','=',False)]}" context="{'default_domain': 'partner'}"/>
<field name="title" domain="[('domain', '=', 'contact')]" options='{"no_open": True}'/>
</group>
</group>