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

I am not much familiar with odoo. Currently i am having this error.

Odoo Server Error
Traceback (most recent call last):
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_alyaf_trading_print_delivery_note_template_1_266
  File "<template>", line 2, in body_call_content_264
  File "<template>", line 97, in foreach_263
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/ir_qweb.py", line 363, in _get_field
    field = record._fields[field_name]
KeyError: 'remark'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/shahinshah/khidma/project6/odoo-13.0/addons/web/controllers/main.py", line 2034, in report_download
    response = self.report_routes(reportname, docids=docids, converter=converter, context=context)
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/home/shahinshah/khidma/project6/odoo-13.0/addons/web/controllers/main.py", line 1972, in report_routes
    pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
  File "/home/shahinshah/khidma/project6/odoo-13.0/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 "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/ir_actions_report.py", line 774, in render_qweb_html
    return self.render_template(self.report_name, data), 'html'
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/ir_actions_report.py", line 548, in render_template
    return view_obj.render_template(template, values)
  File "/home/shahinshah/khidma/project6/odoo-13.0/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 "/home/shahinshah/khidma/project6/odoo-13.0/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 "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/ir_ui_view.py", line 1199, in render
    return self.env[engine].render(self.id, qcontext)
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/ir_qweb.py", line 58, in render
    result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/qweb.py", line 260, in render
    self.compile(template, options)(self, body.append, values or {})
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/qweb.py", line 335, in _compiled_fn
    raise e
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_alyaf_trading_print_inventory_delivery_report_1_240
  File "<template>", line 2, in body_call_content_238
  File "<template>", line 3, in foreach_237
  File "/home/shahinshah/khidma/project6/odoo-13.0/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: 'remark'
Traceback (most recent call last):
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/qweb.py", line 333, in _compiled_fn
    return compiled(self, append, new, options, log)
  File "<template>", line 1, in template_alyaf_trading_print_delivery_note_template_1_266
  File "<template>", line 2, in body_call_content_264
  File "<template>", line 97, in foreach_263
  File "/home/shahinshah/khidma/project6/odoo-13.0/odoo/addons/base/models/ir_qweb.py", line 363, in _get_field
    field = record._fields[field_name]
KeyError: 'remark'

Error to render compiling AST
KeyError: 'remark'
Template: alyaf_trading_print.delivery_note_template_1
Path: /t/t/div[2]/table/tbody/t[2]/tr/td[6]/span
Node: <span t-field="line.remark"/>
I thought maybe this will have something to do with module containing the 'remark' field, but the module is already installed. Don't know what else to do.
Thanks   in advance
Avatar
Discard
Best Answer

Hi,

In the following line <span t-field="line.remark"/> , the line will refers to some object/record-set right ? Can you ensure that there is a field name remark in the corresponding model ?

If you are new to odoo development, see this reporting tutorials: Odoo Qweb - PDF Report Tutorial


Thanks

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
324
1
Jul 24
273
1
May 24
1629
1
May 24
645
0
Mar 24
4