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
=== modified file 'stock/stock.py'
--- stock/stock.py 2012-08-17 07:46:56 +0000
+++ stock/stock.py 2012-10-10 05:16:21 +0000
@@ -1185,6 +1185,12 @@
1185 prodlot_ids = {}1185 prodlot_ids = {}
1186 product_avail = {}1186 product_avail = {}
1187 for move in pick.move_lines:1187 for move in pick.move_lines:
1188 if pick.type == 'in':
1189 move_note = move.product_id.description_purchase
1190 else:
1191 move_note = move.product_id.description_sale
1192 if not move.note:
1193 move_obj.write(cr, uid, move.id, {'note': move_note}, context)
1188 if move.state in ('done', 'cancel'):1194 if move.state in ('done', 'cancel'):
1189 continue1195 continue
1190 partial_data = partial_datas.get('move%s'%(move.id), {})1196 partial_data = partial_datas.get('move%s'%(move.id), {})