Merge lp:~therp-nl/openobject-addons/trunk-wms-lp1316590 into lp:~openerp-dev/openobject-addons/trunk-wms

Proposed by Holger Brunn (Therp)
Status: Needs review
Proposed branch: lp:~therp-nl/openobject-addons/trunk-wms-lp1316590
Merge into: lp:~openerp-dev/openobject-addons/trunk-wms
Diff against target: 29 lines (+13/-0)
1 file modified
purchase/purchase.py (+13/-0)
To merge this branch: bzr merge lp:~therp-nl/openobject-addons/trunk-wms-lp1316590
Reviewer Review Type Date Requested Status
OpenERP R&D Team Pending
Review via email: mp+218409@code.launchpad.net

Description of the change

For discussion, please see the bug report

To post a comment you must log in.

Unmerged revisions

9711. By Holger Brunn (Therp)

[IMP] defer processing store function fields when bulk creating stock
moves

9710. By Quentin (OpenERP) <email address hidden>

[FIX] warehouse config for resuply warehouses

9709. By Quentin (OpenERP) <email address hidden>

[FIX] fixes

9708. By Quentin (OpenERP) <email address hidden>

[REV] revert of a partially wrong commit introduced in a previous merge with trunk and detected during the code review

9707. By Quentin (OpenERP) <email address hidden>

[REF] product: get_price_history refactored and moved in product.template object

9706. By Josse Colpaert (OpenERP)

[IMP] Correct js assets for barcode scanner

9705. By Josse Colpaert (OpenERP)

[IMP] Picking type instead of warehouse in PoS

9704. By Josse Colpaert (OpenERP)

[DEL] Delete boards

9703. By Josse Colpaert (OpenERP)

[MERGE] Merge from trunk test

9702. By Olivier Dony (Odoo)

[IMP] product: simplify legacy useless code

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-05-02 13:03:52 +0000
3+++ purchase/purchase.py 2014-05-06 13:14:02 +0000
4@@ -733,6 +733,13 @@
5 todo_moves = []
6 new_group = self.pool.get("procurement.group").create(cr, uid, {'name': order.name, 'partner_id': order.partner_id.id}, context=context)
7
8+ if context is None:
9+ context = {}
10+
11+ context = dict(
12+ context,
13+ no_store_function=True)
14+
15 for order_line in order_lines:
16 if not order_line.product_id:
17 continue
18@@ -742,6 +749,12 @@
19 move = stock_move.create(cr, uid, vals, context=context)
20 todo_moves.append(move)
21
22+ for order, model_name, ids, fields in stock_move._store_get_values(
23+ cr, uid, todo_moves, list(set(stock_move._columns.keys() +
24+ stock_move._inherits.values())),
25+ context):
26+ self.pool[model_name]._store_set_values(cr, uid, ids, fields,
27+ context)
28 todo_moves = stock_move.action_confirm(cr, uid, todo_moves)
29 stock_move.force_assign(cr, uid, todo_moves)
30