Merge lp:~openerp-dev/openobject-addons/7.0-opw-598841-rmu into lp:openobject-addons/7.0

Proposed by Ravish(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-598841-rmu
Merge into: lp:openobject-addons/7.0
Diff against target: 13 lines (+2/-1)
1 file modified
stock/stock.py (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-598841-rmu
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp (community) code review, test Approve
Naresh(OpenERP) Pending
Review via email: mp+194066@code.launchpad.net

Description of the change

Hello,

When you update inventory manually (from product). chain rules on location should not trigger.

Thanks Lot.

To post a comment you must log in.
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

LGTM

review: Approve (code review, test)

Unmerged revisions

9489. By Ravish(OpenERP)

[update] change in code for stock double entriry

9488. By Ravish(OpenERP)

[FIX] inventory should not apply chain rules

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 2013-11-04 17:32:32 +0000
3+++ stock/stock.py 2013-11-06 05:28:44 +0000
4@@ -2125,7 +2125,8 @@
5 """
6 moves = self.browse(cr, uid, ids, context=context)
7 self.write(cr, uid, ids, {'state': 'confirmed'})
8- self.create_chained_picking(cr, uid, moves, context)
9+ if moves[0].location_id.usage != 'inventory':
10+ self.create_chained_picking(cr, uid, moves, context)
11 return []
12
13 def action_assign(self, cr, uid, ids, *args):