Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo 9 Warning - Validation Error

on 2/8/16, 5:36 AM 1,194 views

i've just installed odoo 9 on my ubuntu server, it's seems ok but if i update quantity on hand in product it gives me this error. Any one can help me please?

The operation cannot be completed, probably due to the following: - deletion: you may be trying to delete a record while other records still reference it - creation/update: a mandatory field is not correctly set

[object with reference: weight_uom_id - weight.uom.id]

sorry for my bad english


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.

Hiral Patel (hip)
on 2/10/16, 1:51 AM

Hello, record kg is already set in Weight :(

on 2/10/16, 3:39 AM

Have you set any default value for 'weight_uom_id' ?

Hiral Patel (hip)
on 2/11/16, 1:47 AM

If you have set any default, try after deleting this default for 'weight_uom_id'.

Hiral Patel (hip)
on 2/11/16, 2:18 AM

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

on 2/11/16, 5:49 AM

Activate debug mode. Than go-to Settings -> Technical -> Actions -> User-defined Defaults. You can find default for 'weight_uom_id' here.

Hiral Patel (hip)
on 2/12/16, 4:37 AM

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

on 2/12/16, 4:43 AM

You are welcome. :)

Hiral Patel (hip)
on 2/12/16, 5:04 AM
Daniel Blanco
On 6/29/16, 4:28 PM

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]')

On 2/9/16, 8:22 AM

i haven't changed the Unit of Measure Category. I use unit as Unit of Measure

i see that i can't save in product:

- Cost in General information

- Gross weight and Volume in Inventory.

both return to 0 after being changed and saved and if i try to delete a product it's give me this error: [object with reference: Change Product Quantity - stock.change.product.qty]

in Unit of Measure CAtegory i've this. (Sorry i do not know how to attach a screenshot)

  1. Unit of Measure Categories
1-5 of 5
Working Time
Length / Distance

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 2/8/16, 5:36 AM
Seen: 1194 times
Last updated: 6/29/16, 4:28 PM