Merge lp://qastaging/~openerp-dev/openobject-addons/trunk-opw-581120-port-mma into lp://qastaging/openobject-addons
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp://qastaging/~openerp-dev/openobject-addons/trunk-opw-581120-port-mma | ||||
Merge into: | lp://qastaging/openobject-addons | ||||
Diff against target: |
19 lines (+4/-2) 1 file modified
stock/stock.py (+4/-2) |
||||
To merge this branch: | bzr merge lp://qastaging/~openerp-dev/openobject-addons/trunk-opw-581120-port-mma | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mayur Maheshwari(OpenERP) (community) | Needs Resubmitting | ||
Fabien (Open ERP) | Disapprove | ||
Review via email: mp+133230@code.qastaging.launchpad.net |
Description of the change
Hello,
step to reproduce:
1] There are 2 UOM
-kg ( reference unit)
- gm (Smaller than the reference UoM and ratio 1000)
2] Make a product like "test product" with purchase unit = g and uom = g
3] From incoming shipment process 500 gram "test product" to stock location and make lot like "00001"
4] Now from internal move change location stock to self -1 and apply lot as already create "00001"
so here raise a warning message
Insufficient Stock in Lot !
You are moving 500gm products but only 0.50 gm available in this lot.
For better understanding of the issue, please refer to the video attached to the comment #3 of lp:1068152.
This branch fixes this issue
code is forward port from 6.1
Thanks,
Mayur
Unmerged revisions
- 7965. By Mayur Maheshwari(OpenERP)
-
[IMP]stock: improve a code of onchage and make qty of multiply with its factor
- 7964. By Ravi Gohil (OpenERP)
-
[FIX]account_
voucher : If we have a product configured with a default UoM whose UoM type is set to other than reference uom, and when creating production lot for this product, it shows QTY in reference UoM and not in default UoM, this causes wrong warning message when assigning lot while creating picking
The fix is not clean. There reference UoM may not exist. It's not a good practice to search on this. You should just multiply or divise by the rate of the product UoM.