[IMP] when create company form supplier it should be supplier by default, same for the customer and when both the company should be both customer and supplier.

bzr revid: nco@tinyerp.com-20130523052403-lk8e1ghfglwtavg5
This commit is contained in:
Nimesh Contractor (OpenERP)
2013-05-23 10:54:03 +05:30
parent be683318ef
commit b2c84a8310
+1 -1
View File
@@ -138,7 +138,7 @@
</h1>
<field name="parent_id"
placeholder="Company"
domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'default_supplier': supplier}"
domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'default_supplier': supplier, 'default_customer': customer}"
attrs="{'invisible': [('is_company','=', True),('parent_id', '=', False)]}"
on_change="onchange_address(use_parent_address, parent_id)"/>
<field name="category_id" widget="many2many_tags" placeholder="Tags..."/>