Hi,
I'm using Odoo 14 Community Edition for a non-profit organization, with Odoo Mates accounting app.
I was trying to setup differed revenues using modules account_cutoff_base and account_invoice_start_end_dates, then I realized that I couldn't access General Settings anymore.
Trying to reach the view gives me following error:
Error: field_utils.format[(intermediate value)] is not a function _formatValue@https://odoo14.legaragenumerique.fr/web/static/src/js/fields/abstract_field.js:392:65 _render@https://odoo14.legaragenumerique.fr/web/static/src/js/_deprecated/basic_fields.js:104:30 _render@https://odoo14.legaragenumerique.fr/web/static/src/js/fields/upgrade_fields.js:94:21 OdooClass.extend/
I also realized that, although Stock app is not installed on my system, I had a Stock entry in main menu, but I can't access it:
Odoo Server Error
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/usr/lib/python3/dist-packages/odoo/http.py", line 684, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 360, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 348, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 913, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 532, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1737, in load action = request.env[action_type].sudo().browse([action_id]).read() File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions.py", line 240, in read result = super(IrActionsActWindow, self).read(fields, load=load) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3022, in read return self._read_format(fnames=fields, load=load) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3042, in _read_format vals[name] = convert(record[name], record, use_name_get) File "/usr/lib/python3/dist-packages/odoo/models.py", line 5667, in __getitem__ return self._fields[key].__get__(self, type(self)) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1021, in __get__ self.compute_value(recs) File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1177, in compute_value records._compute_field_value(self) File "/usr/lib/python3/dist-packages/odoo/models.py", line 4062, in _compute_field_value getattr(self, field.compute)() File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions.py", line 207, in _compute_search_view fvg = self.env[act.res_model].fields_view_get(act.search_view_id.id, 'search') File "/usr/lib/python3/dist-packages/odoo/api.py", line 476, in __getitem__ return self.registry[model_name]._browse(self, (), ()) File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 176, in __getitem__ return self.models[model_name] Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 640, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 316, in _handle_exception raise exception.with_traceback(None) from new_cause KeyError: 'stock.picking.type'
I tried to install Stock app but that leds me to yet another error:
Odoo Server ErrorTraceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 677, in _tag_root f(rec) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 580, in _tag_record record = model._load_records([data], self.mode == 'update') File "/usr/lib/python3/dist-packages/odoo/models.py", line 4212, in _load_records records = self._load_records_create([data['values'] for data in to_create]) File "/usr/lib/python3/dist-packages/odoo/models.py", line 4141, in _load_records_create return self.create(values) File "", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 329, in _model_create_single return self.browse().concat(*(create(self, vals) for vals in arg)) File "/usr/lib/python3/dist-packages/odoo/api.py", line 329, in return self.browse().concat(*(create(self, vals) for vals in arg)) File "/usr/lib/python3/dist-packages/odoo/addons/stock/models/stock_warehouse.py", line 131, in create warehouse = super(Warehouse, self).create(vals) File "", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 347, in _model_create_multi return create(self, [arg]) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_fields.py", line 534, in create recs = super().create(vals_list) File "", line 2, in create File "/usr/lib/python3/dist-packages/odoo/api.py", line 348, in _model_create_multi return create(self, arg) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3869, in create records = self._create(data_list) File "/usr/lib/python3/dist-packages/odoo/models.py", line 3975, in _create cr.execute(query, params) File "", line 2, in execute File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 101, in check return f(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 298, in execute res = self._obj.execute(query, params) psycopg2.IntegrityError: duplicate key value violates unique constraint "stock_warehouse_warehouse_name_uniq" DETAIL: Key (name, company_id)=(San Francisco, 1) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/usr/lib/python3/dist-packages/odoo/http.py", line 684, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 360, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 348, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 913, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 532, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1393, in call_button action = self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1381, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 399, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 386, in _call_kw_multi result = method(recs, *args, **kwargs) File "", line 2, in button_immediate_install File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log return method(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 475, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 593, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 89, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 461, in load_modules loaded_modules, update_module, models_to_check) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 349, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 222, in load_module_graph load_data(cr, idref, mode, kind='data', package=package) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 69, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 733, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 799, in convert_xml_import obj.parse(doc.getroot()) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 719, in parse self._tag_root(de) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 677, in _tag_root f(rec) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 685, in _tag_root )) from e Exception The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 640, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 316, in _handle_exception raise exception.with_traceback(None) from new_cause odoo.tools.convert.ParseError: while parsing /usr/lib/python3/dist-packages/odoo/addons/stock/data/stock_data.xml:91, near San Francisco WHI don't know what to do to solve this, and I don't have a way to roll back my instance..
Thank you
Hi Florian Roger, have you found any solution ? i am also facing this same issue