Merge lp://staging/~therp-nl/ocb-addons/7.0_lp914670_update_picking_date into lp://staging/ocb-addons

Proposed by Ronald Portier (Therp)
Status: Merged
Merged at revision: 10206
Proposed branch: lp://staging/~therp-nl/ocb-addons/7.0_lp914670_update_picking_date
Merge into: lp://staging/ocb-addons
Diff against target: 56 lines (+33/-4)
1 file modified
stock/stock.py (+33/-4)
To merge this branch: bzr merge lp://staging/~therp-nl/ocb-addons/7.0_lp914670_update_picking_date
Reviewer Review Type Date Requested Status
Pedro Manuel Baeza code review Approve
Sébastien BEAU - http://www.akretion.com code review, no test Approve
Raphaël Valyi - http://www.akretion.com Approve
Review via email: mp+223551@code.staging.launchpad.net

Description of the change

Fixes lp 914670. Expected date on stock.picking should change (be recomputed) when expected date on stock.move changes.

To post a comment you must log in.
Revision history for this message
Raphaël Valyi - http://www.akretion.com (rvalyi) wrote :

LGTM

review: Approve
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Great fix ! Approve

review: Approve (code review, no test)
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

I see the code more elegant in this way, but it doesn't really matter:

    picking_ids = set()
    for move_obj in move_pool.browse(cr, uid, ids, context=context):
        if move_obj.picking_id:
            picking_ids.add(move_obj.picking_id.id)
    return list(picking_ids)

Regards.

review: Approve (code review)
Revision history for this message
Ronald Portier (Therp) (rportier1962) wrote :

Updated merge proposal according to suggestion from Pedro Manual Baeza.

Much better this way!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.