Error:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_external_layout_standard_775
AttributeError: 'sale.order' object has no attribute 'company'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo/12.0-ODOO/src/12.0/addons/web/controllers/main.py", line 1671, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter)
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/12.0-ODOO/src/12.0/addons/web/controllers/main.py", line 1612, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/ir_actions_report.py", line 682, in render_qweb_pdf
html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/ir_actions_report.py", line 722, in render_qweb_html
return self.render_template(self.report_name, data), 'html'
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/ir_actions_report.py", line 505, in render_template
return view_obj.render_template(template, values)
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/ir_ui_view.py", line 1284, in render_template
return self.browse(self.get_view_id(template)).render(values, engine)
File "/opt/odoo/12.0-ODOO/src/12.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 "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/ir_ui_view.py", line 1293, in render
return self.env[engine].render(self.id, qcontext)
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/ir_qweb.py", line 59, in render
result = super(IrQWeb, self).render(id_or_xml_id, values=values, **context)
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 274, in render
self.compile(template, options)(self, body.append, values or {})
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn
raise e
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_1123_688
File "<template>", line 2, in body_call_content_687
File "<template>", line 3, in foreach_686
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn
raise e
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_sale_report_saleorder_document_738
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn
raise e
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_external_layout_765
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 353, 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: 'sale.order' object has no attribute 'company'
Traceback (most recent call last):
File "/opt/odoo/12.0-ODOO/src/12.0/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn
return compiled(self, append, new, options, log)
File "<template>", line 1, in template_web_external_layout_standard_775
AttributeError: 'sale.order' object has no attribute 'company'
Error to render compiling AST
AttributeError: 'sale.order' object has no attribute 'company'
Template: web.external_layout_standard
Path: /templates/t/div[1]/div/div[1]/div
Node: <div t-field="o.company.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
2814
Views
Change it into 'company_id'
<div t-field="o.company_id.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}"/>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
6
Dec 24
|
17733 | ||
|
2
Mar 17
|
7054 | ||
|
1
Dec 24
|
185 | ||
|
0
Jul 24
|
225 | ||
|
2
Mar 24
|
698 |