It has been fixed in latest stable by this action.

<record id="action_partner_supplier_form" model="ir.actions.act_window">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="name">Suppliers 
Partners</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="type">ir.actions.act_window</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="res_model">res.partner</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field name="view_type">form</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="domain">&#91;&#40;'supplier','=',1&#41;&#93;</field>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <field 
name="context">&#123;'default_customer'&#58;0&#125;</field>
</record>

You can see <field name="context">&#123;'default_customer'&#58;0&#125;</field>
Open partner from supplier will mark supplier only.
or in main partner action you can add above line to make customer field disable 
by default.

------------------------
OpenERP=Easier, Adaptable, Affordable, Modular




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=43650#43650

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to