Skip to Content
Menu
This question has been flagged
3 Replies
4272 Views

Hi,

After testing odoo with 1 app it was time to update to the full version.

I've installed the apps that i would need for my business.


These are the installed apps : 
Sales

Purchase

Project

Timesheets

Knowledge

Helpdesk


Somehow odoo also installed : 
Employees

Skills management


On my main window i also see :

Stock and Link tracker


The stock app is not set as installed in the apps app but does show up in my main window.


If i now try to open anything that relates to stock i've get an error.
This means that i can't even open or add products.


I also can't open settings, i've always get this same error.

UncaughtPromiseError > OwlError

Uncaught Promise > The following error occurred in onWillStart: ""res.config.settings"."group_stock_tracking_lot" field is undefined."


How can i solve this?

Is it possible to just install a module that overwrites this?


I am using odoo online and don't have access to the server.

I can only use the gui as far as i know.

Avatar
Discard
Author

Installing the stock app seemed like a solution but the i get the following error

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 556, in _tag_root
f(rec)
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 456, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/odoo/src/odoo/17.0/odoo/models.py", line 5063, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/odoo/src/odoo/17.0/odoo/models.py", line 4974, in _load_records_create
return self.create(values)
File "<decorator-gen-224>", line 2, in create
File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/home/odoo/src/odoo/17.0/addons/stock/models/stock_warehouse.py", line 126, in create
warehouses = super().create(vals_list)
File "<decorator-gen-12>", line 2, in create
File "/home/odoo/src/odoo/17.0/odoo/api.py", line 415, in _model_create_multi
return create(self, arg)
File "/home/odoo/src/odoo/17.0/odoo/models.py", line 4603, in create
records = self._create(data_list)
File "/home/odoo/src/odoo/17.0/odoo/models.py", line 4791, in _create
cr.execute(SQL(
File "/home/odoo/src/odoo/17.0/odoo/sql_db.py", line 332, in execute
res = self._obj.execute(query, params)
psycopg2.errors.UniqueViolation: duplicate key value violates unique constraint "stock_warehouse_warehouse_code_uniq"
DETAIL: Key (code, company_id)=(WH, 1) already exists.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1765, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/home/odoo/src/odoo/17.0/odoo/service/model.py", line 133, in retrying
result = func()
File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1792, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/home/odoo/src/odoo/17.0/odoo/http.py", line 1996, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/home/odoo/src/odoo/17.0/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/home/odoo/src/odoo/17.0/addons/web/controllers/dataset.py", line 24, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/17.0/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/17.0/odoo/api.py", line 468, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/17.0/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/custom/trial/saas_trial/models/module.py", line 143, in button_immediate_install
return super(IrModuleModule, self).button_immediate_install()
File "<decorator-gen-77>", line 2, in button_immediate_install
File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_module.py", line 75, in check_and_log
return method(self, *args, **kwargs)
File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_module.py", line 466, in button_immediate_install
return self._button_immediate_function(self.env.registry[self._name].button_install)
File "/home/odoo/src/custom/trial/saas_trial/models/module.py", line 109, in _button_immediate_function
res = super(IrModuleModule, self)._button_immediate_function(function)
File "/home/odoo/src/odoo/17.0/odoo/addons/base/models/ir_module.py", line 590, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "<decorator-gen-16>", line 2, in new
File "/home/odoo/src/odoo/17.0/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/home/odoo/src/odoo/17.0/odoo/modules/registry.py", line 113, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/home/odoo/src/odoo/17.0/odoo/modules/loading.py", line 480, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/home/odoo/src/odoo/17.0/odoo/modules/loading.py", line 364, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/odoo/src/odoo/17.0/odoo/modules/loading.py", line 227, in load_module_graph
load_data(env, idref, mode, kind='data', package=package)
File "/home/odoo/src/odoo/17.0/odoo/modules/loading.py", line 71, in load_data
tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 627, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 693, in convert_xml_import
obj.parse(doc.getroot())
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 613, in parse
self._tag_root(de)
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 556, in _tag_root
f(rec)
File "/home/odoo/src/odoo/17.0/odoo/tools/convert.py", line 569, in _tag_root
raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (
odoo.tools.convert.ParseError: while parsing /home/odoo/src/odoo/17.0/addons/stock/data/stock_data.xml:84, somewhere inside
<record id="warehouse0" model="stock.warehouse">
<field name="partner_id" ref="base.main_partner"/>
<field name="code">WH</field>
</record>

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
RPCError@https://MYODOO.odoo.com/web/assets/afaa2d8/web.assets_web.min.js:2873:319
makeErrorFromResponse@https://MYODOO.odoo.com/web/assets/afaa2d8/web.assets_web.min.js:2876:163
jsonrpc/promise</<@https://MYODOO.odoo.com/web/assets/afaa2d8/web.assets_web.min.js:2880:34

Try updating the installation of the Accounting app before installing the Inventory app. It worked for me!

Best Answer

The error message points to a conflict with the stock app, specifically a unique constraint violation. This usually happens when there's an attempt to create a record that already exists, in your case, a warehouse with the code "WH."

Avatar
Discard
Best Answer

Did u find a solution ? 


Avatar
Discard
Author Best Answer

Hi, 

First of all thanks for your reply.
I've also noticed this would come from the stock app.
Only issue is that i didn't install this myself but odoo created some depencies with installing the other apps.
I can't manage the warehouses because the app is not installed.
I'm waiting for a response from the odoo support.
I also can't create contact or products because of this issue.
Isn't there any model that i can install to overwrite these fields?

Kind regards

Thomas

Avatar
Discard

Did any one find a solution to this issue?

Author

This is the answer from the Odoo support that solved my problem.

The reason this issue occurs is due to some missing dependency that is required by the sale application. I will walk you through installing this module on your database which will allow you to add new products to sale orders once more:
1. Navigate to the Applications module
2. Using the search bar, find the module named “sale_stock”
3. Install the module by clicking the corresponding install button
4. Once the install is complete, you will be redirected to your home page. Once complete, you will be able to add products to sale orders without raising an error

Related Posts Replies Views Activity
1
Jan 23
2933
1
Nov 15
4185
1
Apr 15
3633
1
Apr 24
10942
1
Jul 23
3014