Skip to Content
Menu
This question has been flagged
2 Replies
1690 Views

After a restart of Odoo13, when I tried to open the Products view (model: product.template) inside of sales or purchase or inventory, I got the error bellow. Although Product Variants page (model:  product.product)  opens normally. 

I've tried updating the following modules (with no luck): base, web, mail, product, sale, sale_management, accounting and purchase.


The stack trace:

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 625, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 311, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/home/odoo/src/odoo/odoo/http.py", line 670, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/http.py", line 351, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/http.py", line 340, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 916, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1342, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1334, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 386, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 359, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/models.py", line 1478, in load_views
for [v_id, v_type] in views
File "/home/odoo/src/odoo/odoo/models.py", line 1478, in
for [v_id, v_type] in views
File "/home/odoo/src/odoo/addons/mail/models/mail_thread.py", line 411, in fields_view_get
res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
File "/home/odoo/src/odoo/addons/web/models/models.py", line 232, in fields_view_get
r = super().fields_view_get(view_id, view_type, toolbar, submenu)
File "/home/odoo/src/odoo/odoo/models.py", line 1565, in fields_view_get
xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 982, in postprocess_and_fields
fields_def = self.postprocess(model, node, view_id, False, fields)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 912, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 912, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 912, in postprocess
fields.update(self.postprocess(model, f, view_id, in_tree_view, model_fields))
[Previous line repeated 1 more time]
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 835, in postprocess
).postprocess_and_fields(field.comodel_name, f, view_id)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 994, in postprocess_and_fields
self.raise_view_error(message, view_id)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 614, in raise_view_error
raise ValueError(message)
ValueError: Field `sequence` does not exist

Error context:
View `n/a`
[view_id: n/a, xml_id: n/a, model: n/a, parent_id: n/a]

Avatar
Discard
Author Best Answer

The problem was that there was a view loaded into odoo from a previous update but not present anymore because we forgot to include it in the new update. So odoo still had saved views from before, but there was no underlying code. We added the module and it fixed the problem.



Avatar
Discard

Hello,
I have similar error when I click on "Create vendor bill" from a document of Documents app. What should I do?

Odoo Server Error

Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 625, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 311, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/src/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/home/odoo/src/odoo/odoo/http.py", line 670, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/http.py", line 351, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/http.py", line 340, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 916, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 516, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1342, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1334, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 390, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 377, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/enterprise/documents/models/workflow.py", line 124, in apply_actions
return self.create_record(documents=documents)
File "/home/odoo/src/enterprise/documents_account/models/workflow.py", line 38, in create_record
with Form(self.env['account.move'].with_context(create_values)) as invoice_form:
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1564, in __init__
self._process_fvg(recordp, fvg)
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1636, in _process_fvg
for modifier, domain in json.loads(f.get('modifiers', '{}')).items()
File "/home/odoo/src/odoo/odoo/tests/common.py", line 1636, in <dictcomp>
for modifier, domain in json.loads(f.get('modifiers', '{}')).items()
File "/home/odoo/src/odoo/odoo/osv/expression.py", line 209, in normalize_domain
assert expected == 0, 'This domain is syntactically not correct: %s' % (domain)
AssertionError: This domain is syntactically not correct: ['|', '|', ['l10n_ar_currency_rate', '!=', 0.0], ['computed_currency_rate', '=', 1.0]]

Best Answer

See the latest changes in  u code and delete customize in product.template  model 

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 20
5627
2
Apr 24
26545
0
May 21
4
1
Dec 24
166
0
Nov 24
63