[IMP] base: show possible titles for companies (opw 608243)

This commit is contained in:
Martin Trigaux 2014-08-01 17:07:56 +02:00
parent f6fb2b69df
commit 19e401adf0
1 changed files with 3 additions and 2 deletions

View File

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