Merge lp:~openerp-dev/openobject-addons/6.1-opw-575210-rgo into lp:openobject-addons/6.1

Proposed by Ravi Gohil (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-575210-rgo
Merge into: lp:openobject-addons/6.1
Diff against target: 13 lines (+2/-1)
1 file modified
mrp/wizard/change_production_qty.py (+2/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-575210-rgo
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+107331@code.launchpad.net

Description of the change

Hello,

When changing the quantity of MO using wizard `Change Qty`, the changed quantity should be reflected in respective move linked to `Move Product` in `Extra Info` tab.

Product Configuration:
Product Type: Stockable Product
Procurement Method: Make to Stock
Supply Method: Produce

Steps to reproduce:
1) Create a SO for the above configured product, say for example with 15 Qty,
2) Procurement Order will be created for that SO, now run Procurement, MO will be created with 15 Qty for that product,
3) Now, as my supplier can produce MAX 8 qty of that product, I changed the qty of the MO to 8, but this isn't updated in the move linked to `Move Product`(this is the actual BUG), So, I manually changed the quantity in `Move Product` to 8.
4) I ran the scheduler with `Automatic orderedpoint` option ticked, this creates a MO with remaining quantities of that product, that is 7, and the `Move Product` is also linked with Qty 7.

So, in this scenario, if I changed the qty of the MO, this should be reflected in respective `Move Product`.

Thanks.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

This bug was qualified as Already Fixed on Trunk (means that it was already fixed and merged in Trunk). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.

Thanks,
Naresh Soni

Unmerged revisions

6812. By Ravi Gohil (OpenERP)

[FIX] mrp: Quantity changed using wizard in MO isn't reflected in 'Move Product' in 'Extra Info' tab: (Maintenance Case : 575210)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mrp/wizard/change_production_qty.py'
2--- mrp/wizard/change_production_qty.py 2012-02-14 15:57:46 +0000
3+++ mrp/wizard/change_production_qty.py 2012-05-25 06:46:18 +0000
4@@ -72,7 +72,8 @@
5 prod = prod_obj.browse(cr, uid, record_id, context=context)
6 prod_obj.write(cr, uid,prod.id, {'product_qty': wiz_qty.product_qty})
7 prod_obj.action_compute(cr, uid, [prod.id])
8-
9+ if prod.move_prod_id and prod.product_id.procure_method == "make_to_stock":
10+ self.pool.get('stock.move').write(cr, uid, [prod.move_prod_id.id], {'product_qty': wiz_qty.product_qty}, context=context)
11 move_lines_obj = self.pool.get('stock.move')
12 for move in prod.move_lines:
13 bom_point = prod.bom_id