[IMP] base: no default domain for partner's title

The title field should not have a domain by default.
When a new record is created or the 'is company' field is changed, the onchange_type is triggered to restrict the domain accordingly to is_company field.
When an existing record is modified, there will have no domain on title field. It's not ideal but at least companies will be able to change the title without the need to modify twice the field is_company.
Fixes #1713
This commit is contained in:
Martin Trigaux 2014-08-14 12:00:27 +02:00
parent 85d2b45aaa
commit deacba0ed6
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@
<field name="mobile"/>
<field name="fax"/>
<field name="email" widget="email"/>
<field name="title" domain="[('domain', '=', 'contact')]" options='{"no_open": True}'/>
<field name="title" options='{"no_open": True}'/>
</group>
</group>