[IMP] when create company from the supplier it should be set supplier.

bzr revid: nco@tinyerp.com-20130419084218-e3pflb3jqq6kihfa
This commit is contained in:
Ishwar Malvi (OpenERP Trainee)
2013-04-19 14:12:18 +05:30
committed by Nimesh Contractor (OpenERP)
parent ecd9f70e43
commit d45ee609b4
+1 -1
View File
@@ -138,7 +138,7 @@
</h1>
<field name="parent_id"
placeholder="Company"
domain="[('is_company', '=', True)]" context="{'default_is_company': True}"
domain="[('is_company', '=', True)]" context="{'default_is_company': True,'default_supplier': supplier,'default_customer': customer}"
attrs="{'invisible': [('is_company','=', True)]}"
on_change="onchange_address(use_parent_address, parent_id)"/>
<field name="category_id" widget="many2many_tags" placeholder="Tags..."/>