Merge lp:~openerp-dev/openobject-addons/6.0-bug-876243-ado into lp:openobject-addons/6.0

Proposed by Amit Dodiya (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 5194
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-bug-876243-ado
Merge into: lp:openobject-addons/6.0
Diff against target: 12 lines (+1/-1)
1 file modified
point_of_sale/point_of_sale.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-bug-876243-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Xavier ALT Pending
Review via email: mp+102251@code.launchpad.net

Description of the change

Hello,

"[FIX] Cannot pay a PoS line with production lot"

Steps to reproduce:
- Create a product with Track Incoming Lots and Track Outgoing Lots.
- Create all data needed to create a PoS Order.
- Create a new PoS Order with a client.
- Create a new line with the product previously created.
- Click on Make Payment

The following warning appear:
Error occurred while validating the field(s) prodlot_id: You must assign a production lot for this product

Code is back-ported from stable 6.1.

Regards,
Amit

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

Unmerged revisions

5194. By Amit Dodiya (OpenERP)

[FIX] Cannot pay a PoS line with production lot

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'point_of_sale/point_of_sale.py'
2--- point_of_sale/point_of_sale.py 2011-06-02 05:14:55 +0000
3+++ point_of_sale/point_of_sale.py 2012-04-17 08:45:22 +0000
4@@ -476,7 +476,7 @@
5 'pos_line_id': line.id,
6 'state': 'waiting',
7 'location_id': location_id,
8- 'location_dest_id': stock_dest_id,
9+ 'location_dest_id': order.shop_id.warehouse_id.lot_output_id.id,
10 }, context=context)
11
12 wf_service = netsvc.LocalService("workflow")