Merge lp:~openerp-dev/openobject-addons/6.0-opw-581494-rha into lp:openobject-addons/6.0
Proposed by
Rifakat Husen (OpenERP)
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/6.0-opw-581494-rha |
Merge into: | lp:openobject-addons/6.0 |
Diff against target: |
20 lines (+10/-0) 1 file modified
stock/stock.py (+10/-0) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-581494-rha |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Numérigraphe (community) | Approve | ||
Naresh(OpenERP) | Pending | ||
Review via email: mp+133053@code.launchpad.net |
Description of the change
Hello,
Currently it is possible to change product on Production Lot where
stock move is associated with the lot. We should forbid the user
changing it.
Override write(), if the product is changed and any stock move refers to
it then it will raise warning.
Please review this fix.
Thanks,
Rifakat Haradwala
To post a comment you must log in.
Unmerged revisions
- 5366. By Rifakat Husen (OpenERP)
-
[FIX] stock: remove checking for moves, always product can not be changed
I think write() should always refuse to change the product, even when no moves exist, other objects could relate to product_id and we have no way to know.
Lionel