Merge lp:~camptocamp/openobject-addons/6.1-merge-from-upstream-mdh into lp:~camptocamp/openobject-addons/6.1-c2c-official

Proposed by Matthieu Dietrich @ camptocamp
Status: Merged
Merged at revision: 6641
Proposed branch: lp:~camptocamp/openobject-addons/6.1-merge-from-upstream-mdh
Merge into: lp:~camptocamp/openobject-addons/6.1-c2c-official
Diff against target: 39 lines (+12/-16)
1 file modified
stock/wizard/stock_return_picking.py (+12/-16)
To merge this branch: bzr merge lp:~camptocamp/openobject-addons/6.1-merge-from-upstream-mdh
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp Approve
Guewen Baconnier @ Camptocamp Approve
Review via email: mp+218291@code.launchpad.net

Commit message

[MRG] merged back a fix from upstream

Description of the change

There was a commit remaining on the upstream only, but not on the 6.1-c2c-official.
I made this MP to keep things consistent.

Regards,
Matthieu Dietrich

To post a comment you must log in.
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) :
review: Approve
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'stock/wizard/stock_return_picking.py'
--- stock/wizard/stock_return_picking.py 2012-06-12 16:15:51 +0000
+++ stock/wizard/stock_return_picking.py 2014-05-05 14:37:41 +0000
@@ -202,23 +202,19 @@
202 pick_obj.force_assign(cr, uid, [new_picking], context)202 pick_obj.force_assign(cr, uid, [new_picking], context)
203 # Update view id in context, lp:702939203 # Update view id in context, lp:702939
204 view_list = {204 view_list = {
205 'out': 'view_picking_out_tree',205 'out': 'action_picking_tree',
206 'in': 'view_picking_in_tree',206 'in': 'action_picking_tree4',
207 'internal': 'vpicktree',207 'internal': 'action_picking_tree6',
208 }
209 data_obj = self.pool.get('ir.model.data')
210 res = data_obj.get_object_reference(cr, uid, 'stock', view_list.get(new_type, 'vpicktree'))
211 context.update({'view_id': res and res[1] or False})
212 return {
213 'domain': "[('id', 'in', ["+str(new_picking)+"])]",
214 'name': 'Picking List',
215 'view_type':'form',
216 'view_mode':'tree,form',
217 'res_model':'stock.picking',
218 'type':'ir.actions.act_window',
219 'context':context,
220 }208 }
221209 data_pool = self.pool.get('ir.model.data')
210 action = {}
211 action_model,action_id = data_pool.get_object_reference(cr, uid, 'stock', view_list.get(new_type,'action_picking_tree6'))
212 if action_model:
213 action_pool = self.pool.get(action_model)
214 action = action_pool.read(cr, uid, action_id, context=context)
215 action['domain'] = "[('id','=', "+str(new_picking)+")]"
216 action['context'] = context
217 return action
222stock_return_picking()218stock_return_picking()
223219
224# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:220# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

Subscribers

People subscribed via source and target branches

to all changes: