Merge lp:~openerp-dev/openobject-addons/6.0-opw-579903-ado into lp:openobject-addons/6.0

Proposed by Amit Dodiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-579903-ado
Merge into: lp:openobject-addons/6.0
Diff against target: 16 lines (+6/-0)
1 file modified
stock/stock.py (+6/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-579903-ado
Reviewer Review Type Date Requested Status
Xavier ALT Pending
Naresh(OpenERP) Pending
Review via email: mp+128858@code.launchpad.net

Description of the change

Hello,

[FIX]: text of description field not passing to invoice from delivery order / incoming shipment

Steps:
1). Add sale description in any product
2). Create new delivery order and add the above product in delivery order and set Invoice control=To be invoiced
3). Now process the delivery order and create invoice from it
You will see the sale description of selected product is not in invoice line.

Regards,
Amit Dodiya

To post a comment you must log in.

Unmerged revisions

5351. By Amit Dodiya<email address hidden>

[FIX]: text of description field not passing to invoice from delivery order / incoming shipment

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2012-08-17 07:46:56 +0000
3+++ stock/stock.py 2012-10-10 05:16:21 +0000
4@@ -1185,6 +1185,12 @@
5 prodlot_ids = {}
6 product_avail = {}
7 for move in pick.move_lines:
8+ if pick.type == 'in':
9+ move_note = move.product_id.description_purchase
10+ else:
11+ move_note = move.product_id.description_sale
12+ if not move.note:
13+ move_obj.write(cr, uid, move.id, {'note': move_note}, context)
14 if move.state in ('done', 'cancel'):
15 continue
16 partial_data = partial_datas.get('move%s'%(move.id), {})