[FIX] base: revert 19e401a for title on res.partner form
authorMartin Trigaux <mat@openerp.com>
Wed, 13 Aug 2014 12:59:37 +0000 (14:59 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 13 Aug 2014 13:04:54 +0000 (15:04 +0200)
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.

openerp/addons/base/res/res_partner_view.xml

index 5f4cd26..5fa9511 100644 (file)
@@ -31,7 +31,6 @@
                     <group col="4">
                         <field name="name"/>
                         <field name="shortcut"/>
-                        <field name="domain"/>
                     </group>
                 </form>
             </field>
                             <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>