diff options
| author | Nimesh Contractor (OpenERP) <nco@tinyerp.com> | 2013-05-23 10:54:03 +0530 |
|---|---|---|
| committer | Nimesh Contractor (OpenERP) <nco@tinyerp.com> | 2013-05-23 10:54:03 +0530 |
| commit | b2c84a83109a0260631e2e836cbfd39d4a08c5df (patch) | |
| tree | 3fb9e5c119a9c6e8a5334efb7cb48f1987274929 | |
| parent | be683318efb57d8eab5642e48cc7ae32f988d7ef (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.xml | 2 |
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..."/> |
