This question has been flagged
10 Replies
9118 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

regards

Avatar
Discard

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.

Author

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'.

Author

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.

Author

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. :)

Best Answer

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

Avatar
Discard
Author Best Answer

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
 
Name 
Unit
Weight
Working Time
Length / Distance
Volume
Avatar
Discard