summaryrefslogtreecommitdiff
path: root/addons/website/static/src/css
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2015-03-12 11:45:26 +0100
committerJosse Colpaert <jco@odoo.com>2015-03-13 11:18:02 +0100
commit242a76cc979c3fc237d9e3c44ad18361b33a0d98 (patch)
tree226b9defd492e6e1eb40c4eaf99f4698563780c9 /addons/website/static/src/css
parent8fb4c02f4efb719e36932da6b739f2f06a9002ae (diff)
[FIX] stock: UoM of a product should not be changed when done stock moves exist.
The UoM of a product can be changed to whatever UoM if there have not been made any done stock moves. If there are, you can not change the UoM. If there are not done moves, you can not change the category anymore as the conversion of the product_qty will give an error. The reason we put the constraint is that we would need to change all the qty values of the quants when we change UoM. It is better to avoid this (e.g. rounding). That is why we put the constraint. There is no reason to restrict change of uom_po_id, except that it should fall within the same category as the UoM. (constraint)
Diffstat (limited to 'addons/website/static/src/css')
0 files changed, 0 insertions, 0 deletions