Merge lp:~matjaz-6/openerpsl/openerpsl_01_07 into lp:openerpsl/7.0

Proposed by Matjaz Kalic
Status: Merged
Merged at revision: 248
Proposed branch: lp:~matjaz-6/openerpsl/openerpsl_01_07
Merge into: lp:openerpsl/7.0
Diff against target: 32 lines (+11/-11)
1 file modified
mrp_procurement_qty/wizard/mrp_procurement_qty.py (+11/-11)
To merge this branch: bzr merge lp:~matjaz-6/openerpsl/openerpsl_01_07
Reviewer Review Type Date Requested Status
Mentis Pending
Review via email: mp+200817@code.launchpad.net

Description of the change

[FIX] mrp_procurement_qty (stock_move not updated)

To post a comment you must log in.
248. By Dušan Laznik (Mentis)

[FIX] mrp_procurement_qty (stock_move not updated)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp_procurement_qty/wizard/mrp_procurement_qty.py'
2--- mrp_procurement_qty/wizard/mrp_procurement_qty.py 2014-01-08 10:42:42 +0000
3+++ mrp_procurement_qty/wizard/mrp_procurement_qty.py 2014-01-08 12:14:26 +0000
4@@ -301,17 +301,17 @@
5 order = manufacture_dict[order_key]
6 man_order_obj.write(cr, uid, [order['id']], {'status_izdelki': 2, 'status_testo': 2})
7
8- print('Proizvodnja - poprava statusov')
9- #5. Popravimo kolicine na STOCK.MOVE
10- move_ids = move_obj.search(cr, uid, [('type', '=', 'out'), ('basket_status', 'in', ['0','1'])])
11- for move in move_obj.browse(cr, uid, move_ids):
12- if move.state == 'done':
13- move_obj.write(cr, uid, [move.id], {'basket_status': 2})
14- else:
15- move_obj.write(cr, uid, [move.id], {'basket_status': 2,
16- 'product_qty': move.basket_deliverd,
17- 'product_uos_qty': move.basket_deliverd
18- })
19+ #print('Proizvodnja - poprava statusov')
20+# #5. Popravimo kolicine na STOCK.MOVE
21+# move_ids = move_obj.search(cr, uid, [('type', '=', 'out'), ('basket_status', 'in', ['0','1'])])
22+# for move in move_obj.browse(cr, uid, move_ids):
23+# if move.state == 'done':
24+# move_obj.write(cr, uid, [move.id], {'basket_status': 2})
25+# else:
26+# move_obj.write(cr, uid, [move.id], {'basket_status': 2,
27+# 'product_qty': move.basket_deliverd,
28+# 'product_uos_qty': move.basket_deliverd
29+# })
30
31 #6. Preverimo razpolozljivost na delovnih nalogih, se prej pa nastavimo datum
32 #date_done = self.browse(cr,uid,ids)[0].date_done

Subscribers

People subscribed via source and target branches