Merge lp:~camptocamp/openobject-addons/7.0-bug-1168398-tta+afe into lp:openobject-addons/7.0
Proposed by
Alexandre Fayolle - camptocamp
Status: | Needs review |
---|---|
Proposed branch: | lp:~camptocamp/openobject-addons/7.0-bug-1168398-tta+afe |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
107 lines (+79/-2) 3 files modified
mrp/__openerp__.py (+1/-0) mrp/mrp.py (+11/-2) mrp/test/order_process_prodlot_split.yml (+67/-0) |
To merge this branch: | bzr merge lp:~camptocamp/openobject-addons/7.0-bug-1168398-tta+afe |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+174153@code.launchpad.net |
Description of the change
based on https:/
To post a comment you must log in.
Unmerged revisions
- 9049. By Alexandre Fayolle - camptocamp
-
[MRG] merge back the fix on 7.0 head, and hopefully get green on runbot
- 9048. By Alexandre Fayolle - camptocamp
-
[IMP] fix typo in test, delete trailing whitespace, add an assertion
- 9047. By Alexandre Fayolle - camptocamp
-
[TEST] added test for bug lp:1168398
- 9046. By SnippetBucket.com
-
[FIX] bug:1168398/
Incorrect behaviour when producing MO with component split in serial numbers.
Hi All,
Thanks for Contribution. I have make some test about this change. I found a problem.
if I Create a MO to make 2 Piece Product-A.
Product-A`s BOM
-- Product-A-M QTY:1
1.I click "split in Serial Numbers" and assign 1 serial number "A-M-001" to Product-A-M, so I get two line in "Products to Consume":
|Product-A-M | 1 | |
|Product-A-M | 1 | A-M-001|
2.I consume and produce 1 Product-A. The line without serial number will be consume. Because there are same qty in "Products to Consume" then system will sort by id.
I suggest change the sort code from
moves = sorted(raw_product, key=lambda k: (k.product_qty))
to
moves = sorted(raw_product, key=lambda k: (k.prodlot_id), reverse=True)
is better.
Best regards
Joshua