Skip to Content
Menu
This question has been flagged
2119 Views

we run odoo v12 enterprise, some of the user work in french other in english

we only use CAD currency

any idea how to fixe this ? this is the native instalation from odoo moduls packag we buy, no modification was made

every time we go to send an invoice by email using Sales module odoo

we get this server error

also we lost few feature since last week, some of the DB look corrupted

and again i get this error if i try to send estimate or invoice by email in odoo

Error:

Odoo Server Error

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

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

File "<template>", line 1, in template_portal_portal_signature_16882

AttributeError: 'NoneType' object has no attribute '_name'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise

raise value

File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch

result = self._call_function(**self.params)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper

return f(dbname, *args, **kwargs)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call

result = self.endpoint(*a, **kw)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in __call__

return self.method(*args, **kw)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 962, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/usr/lib/python3/dist-packages/odoo/api.py", line 749, in call_kw

return _call_kw_multi(method, model, args, kwargs)

File "/usr/lib/python3/dist-packages/odoo/api.py", line 736, in _call_kw_multi

result = method(recs, *args, **kwargs)

File "/usr/lib/python3/dist-packages/odoo/models.py", line 5507, in onchange

record._onchange_eval(name, field_onchange[name], result)

File "/usr/lib/python3/dist-packages/odoo/models.py", line 5351, in _onchange_eval

method_res = method(self)

File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 369, in onchange_template_id_wrapper

values = self.onchange_template_id(self.template_id.id, self.composition_mode, self.model, self.res_id)['value']

File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 391, in onchange_template_id

values = self.generate_email_for_composer(template_id, [res_id])[res_id]

File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 529, in generate_email_for_composer

template_values = self.env['mail.template'].with_context(tpl_partners_only=True).browse(template_id).generate_email(res_ids, fields=fields)

File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 481, in generate_email

result, format = report.render_qweb_pdf([res_id])

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 711, in render_qweb_pdf

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

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 751, in render_qweb_html

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

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_actions_report.py", line 534, in render_template

return view_obj.render_template(template, values)

File "/usr/lib/python3/dist-packages/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 "/usr/lib/python3/dist-packages/odoo/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/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 1293, in render

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

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_qweb.py", line 59, in render

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

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 274, in render

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

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn

raise e

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

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

File "<template>", line 1, in template_748_16807

File "<template>", line 2, in body_call_content_16806

File "<template>", line 3, in foreach_16805

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn

raise e

File "/usr/lib/python3/dist-packages/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_16857

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 348, in _compiled_fn

raise e

File "/usr/lib/python3/dist-packages/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_16881

File "/usr/lib/python3/dist-packages/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: 'NoneType' object has no attribute '_name'

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/odoo/addons/base/models/qweb.py", line 346, in _compiled_fn

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

File "<template>", line 1, in template_portal_portal_signature_16882

AttributeError: 'NoneType' object has no attribute '_name'

Error to render compiling AST

AttributeError: 'NoneType' object has no attribute '_name'

Template: portal.portal_signature

Path: /templates/t/div

Node: <div t-att-class="'o_portal_signature_form'" t-att-data-partner-name="partner_name" t-att-data-res-model="object._name" t-att-data-res-id="object.id" t-att-data-call-url="callUrl" t-att-data-sign-label="signLabel" t-att-data-access-token="accessToken"/>


Avatar
Discard
Related Posts Replies Views Activity
3
Aug 15
3742
2
Jul 24
599
1
May 24
1195
2
May 24
795
1
Apr 24
1383