Merge lp:~openerp-dev/openobject-addons/7.0-opw-603905-dhs into lp:openobject-addons/7.0

Proposed by Dhruti Shastri(OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 9840
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-603905-dhs
Merge into: lp:openobject-addons/7.0
Diff against target: 25 lines (+4/-0)
2 files modified
purchase/purchase.py (+2/-0)
sale/sale.py (+2/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-603905-dhs
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Vinay Rana (OpenERP) Pending
Review via email: mp+206345@code.launchpad.net

Description of the change

Only Invoice line brings Description of the product.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Cool one along with this one https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-bug-1205717-msh/+merge/206481

adding description on invoices.

review: Approve

Unmerged revisions

9840. By Dhruti Shastri(OpenERP)

[sale,purchase] : product's description On SOL, POL (case Ref : 603905)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'purchase/purchase.py'
2--- purchase/purchase.py 2014-01-29 16:32:38 +0000
3+++ purchase/purchase.py 2014-02-14 07:16:15 +0000
4@@ -982,6 +982,8 @@
5 product = product_product.browse(cr, uid, product_id, context=context_partner)
6 #call name_get() with partner in the context to eventually match name and description in the seller_ids field
7 dummy, name = product_product.name_get(cr, uid, product_id, context=context_partner)[0]
8+ if product.description:
9+ name += "," + product.description
10 if product.description_purchase:
11 name += '\n' + product.description_purchase
12 res['value'].update({'name': name})
13
14=== modified file 'sale/sale.py'
15--- sale/sale.py 2014-01-15 14:05:27 +0000
16+++ sale/sale.py 2014-02-14 07:16:15 +0000
17@@ -903,6 +903,8 @@
18
19 if not flag:
20 result['name'] = self.pool.get('product.product').name_get(cr, uid, [product_obj.id], context=context_partner)[0][1]
21+ if product_obj.description:
22+ result['name'] += "," + product_obj.description
23 if product_obj.description_sale:
24 result['name'] += '\n'+product_obj.description_sale
25 domain = {}