[IMP] base: no default domain for partner's title
authorMartin Trigaux <mat@openerp.com>
Thu, 14 Aug 2014 10:00:27 +0000 (12:00 +0200)
committerMartin Trigaux <mat@openerp.com>
Thu, 14 Aug 2014 10:00:27 +0000 (12:00 +0200)
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

openerp/addons/base/res/res_partner_view.xml

index 5fa9511..2f44247 100644 (file)
                             <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>