summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNimesh Contractor (OpenERP) <nco@tinyerp.com>2013-05-23 10:54:03 +0530
committerNimesh Contractor (OpenERP) <nco@tinyerp.com>2013-05-23 10:54:03 +0530
commitb2c84a83109a0260631e2e836cbfd39d4a08c5df (patch)
tree3fb9e5c119a9c6e8a5334efb7cb48f1987274929
parentbe683318efb57d8eab5642e48cc7ae32f988d7ef (diff)
[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
-rw-r--r--openerp/addons/base/res/res_partner_view.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/addons/base/res/res_partner_view.xml b/openerp/addons/base/res/res_partner_view.xml
index 0ed26a5353a..32cb4e83e25 100644
--- a/openerp/addons/base/res/res_partner_view.xml
+++ b/openerp/addons/base/res/res_partner_view.xml
@@ -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..."/>