Merge lp:~openerp-dev/openobject-addons/trunk-opw-581494-rha into lp:openobject-addons
Proposed by
Rifakat Husen (OpenERP)
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-opw-581494-rha |
Merge into: | lp:openobject-addons |
Diff against target: |
34 lines (+12/-1) 2 files modified
stock/stock.py (+10/-0) stock/stock_view.xml (+2/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-opw-581494-rha |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Numérigraphe (community) | Needs Fixing | ||
OpenERP Core Team | Pending | ||
Review via email: mp+133057@code.launchpad.net |
Description of the change
Hello,
It is possible to change product on Production Lot while stock move
is also refers to it. We should not let any user change the product if
stock move is associated.
I have put attrs on product, it becomes readonly when there is any stock move
refers to Production Lot. Also overrided write(), so that it can't be changed
through any webservice.
Thanks for your review.
Regards,
Rifakat Haradwala
To post a comment you must log in.
Unmerged revisions
- 7964. By Rifakat Husen (OpenERP)
-
[FIX] stock: improved attrs to be able to make product invisible as soon as we save form
- 7963. By Rifakat Husen (OpenERP)
-
[FIX] stock: remove checking on moves, always product can not be changed
I think write() should always refuse to change the product, even when no moves exist, because other objects could relate to product_id and we have no way to know.
Lionel