Skip to Content
Menu
This question has been flagged
1 Reply
869 Views

Hello I have a problem making a new board with some fields like picture, description, user.. 

But here is my problem I have already 2 fields who are already set, like name and description.

The problem my field description is called with that 

          


And the name of this field is description and in code its called ‘task_desciption’


So for my field user_id I do exactly the same by 

          

And this field is called ‘user_id’

But when I restart my module I have this error :


Odoo Server Error

Traceback (most recent call last):

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "", line 1, in template_project_update_report_project_second_document_42

  File "", line 2, in body_call_content_40

  File "", line 264, in foreach_39

  File "", line 278, in foreach_38

KeyError: 'o.user_id.name'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/Odoo/Odoo-base/addons/web/controllers/main.py", line 2031, in report_download

    response = self.report_routes(reportname, docids=docids, converter=converter, context=context)

  File "/usr/Odoo/Odoo-base/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/usr/Odoo/Odoo-base/addons/web/controllers/main.py", line 1969, in report_routes

    pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/ir_actions_report.py", line 734, in render_qweb_pdf

    html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/ir_actions_report.py", line 774, in render_qweb_html

    return self.render_template(self.report_name, data), 'html'

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/ir_actions_report.py", line 548, in render_template

    return view_obj.render_template(template, values)

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/ir_ui_view.py", line 1191, in render_template

    return self.browse(self.get_view_id(template)).render(values, engine)

  File "/usr/Odoo/Odoo-base/addons/website/models/ir_ui_view.py", line 336, in render

    return super(View, self).render(values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/usr/Odoo/Odoo-base/addons/web_editor/models/ir_ui_view.py", line 27, in render

    return super(IrUiView, self).render(values=values, engine=engine, minimal_qcontext=minimal_qcontext)

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/ir_ui_view.py", line 1199, in render

    return self.env[engine].render(self.id, qcontext)

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/ir_qweb.py", line 58, in render

    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/qweb.py", line 260, in render

    self.compile(template, options)(self, body.append, values or {})

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/qweb.py", line 335, in _compiled_fn

    raise e

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "", line 1, in template_project_update_report_project_second_9

  File "", line 2, in body_call_content_7

  File "", line 3, in foreach_6

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/qweb.py", line 340, in _compiled_fn

    raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0], encoding='unicode'), name)

odoo.addons.base.models.qweb.QWebException: 'o.user_id.name'

Traceback (most recent call last):

  File "/usr/Odoo/Odoo-base/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn

    return compiled(self, append, new, options, log)

  File "", line 1, in template_project_update_report_project_second_document_42

  File "", line 2, in body_call_content_40

  File "", line 264, in foreach_39

  File "", line 278, in foreach_38

KeyError: 'task_user_id'


Error to render compiling AST

KeyError: ‘task_user_id'

Template: project_update.report_project_second_document

Path: /t/t/div/div/div/div/div[2]/t/div[2]/table/t/tbody/td[2]/em/span

Node:





I tried for multiple hours and I don’t know what I can do if someone have an idea Thank you in advance.


Avatar
Discard
Author

Hello thanks for your answer i will check this 

thanks

Best Answer

Hi,

See the report you designed and check the usage of task_user_id inside it. Some where it is wrongly written in the code.

Thanks

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
122
2
Oct 24
263
0
Oct 22
796
2
Sep 21
11089
3
Sep 18
3857