I had this problem in Odoo 8. Solved it simply reinstalling "stock" application (I was not necessary to uninstall).
The complete error stream was the following:
Exception during JSON request handling.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 307, in checked_call
return self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 803, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 403, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 948, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 940, in _call_kw
return checked_call(request.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 149, in wrapper
raise openerp.osv.orm.except_orm(_('Integrity Error'), msg)
except_orm: ('Integrity Error', 'The operation cannot be completed, probably due to the following:\n- deletion: you may be trying to delete a record while other records still reference it\n- creation/update: a mandatory field is not correctly set\n\n[object with reference: weight_uom_id - weight.uom.id]')
Hello, Check 'Unit of Measure Category' for unit 'kg'. Is it 'weight' at your end? Go-to Sales => Configuration => Products => Units of Measure Check record of 'kg'. Set 'Unit of Measure Category' to 'Weight'. Hope it will help you.
Hello, record kg is already set in Weight :(
Have you set any default value for 'weight_uom_id' ?
If you have set any default, try after deleting this default for 'weight_uom_id'.
sorry but where i can find weight_uom_id? Under unit of misure category are all set with product.uom.categ,name and under unit of misure i find product.uom,name
Activate debug mode. Than go-to Settings -> Technical -> Actions -> User-defined Defaults. You can find default for 'weight_uom_id' here.
hi, thank's lot for your help. I've found a solution. I've uninstall and reinstall wharehouse app and now it's work :D. thank's for your patience
You are welcome. :)