[IMP] When no stock moves, change whatever you want, otherwise no change at all for...
authorJosse Colpaert <jco@odoo.com>
Wed, 19 Nov 2014 11:41:25 +0000 (12:41 +0100)
committerJosse Colpaert <jco@odoo.com>
Wed, 26 Nov 2014 17:01:00 +0000 (18:01 +0100)
commit42f511405a4efe88e3903a4b4040ec9d83e462e2
tree65be96e1e453e6c4aa8f7135f70ff319d3756be4
parent0313218123bcdee1956f8e4e29387d898155be7c
[IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM.  #3440 Enhancement request richard-willowit

The default UoM can only be changed when there are no stock moves (or only cancelled ones), but to any category.
The purchase UoM can be changed whenever you want, but has to be in the same category as the default UoM.

Closes #3440

[IMP] When no stock moves, change whatever you want, otherwise no change at all for UoM.  #3440 Enhancement request richard-willowit

[FIX] Remove line

[FIX] Constraint should be applied when UoM or PO UoM is changed
addons/product/product.py