[IMP] product: name_get matching on commercial_partner_id for suppliers
authorMartin Trigaux <mat@openerp.com>
Thu, 2 Oct 2014 08:12:51 +0000 (10:12 +0200)
committerMartin Trigaux <mat@openerp.com>
Thu, 2 Oct 2014 08:59:18 +0000 (10:59 +0200)
commit78144410a4e3e59e8e7f06fb527e7aba8321d4b2
tree39eef251dab359ff02072b4db3868d44c10be010
parente30a5a11a5fc3fabc1cd5102d12248f9fe0a396c
[IMP] product: name_get matching on commercial_partner_id for suppliers

The name_get of a product will use some information (e.g. default_code) based on the supplier.
The matching of the supplier should use the commercial_partner_id in case the supplier info are on the company and the partner_id in the context belongs to the company (e.g. creates quotation with a contact of the company).
Fixes #1219
addons/product/product.py