Good day!
When sending an email, I send the following error:
odoo.addons.mail.models.mail_template: Failed to render template <Template memory:7fadd029d810> using values {'format_tz': <function <lambda> at 0x7fae1c138aa0>, 'ctx': {u'lang': u'es_MX', u'tz': u'Mexico/General', u'uid': 1, 'safe': False, u'journal_type': u'sale', u'params': {u'action': 229}, u'already_open': 1, u'type': u'out_invoice', 'tpl_partners_only': True}, 'user': res.users(1,), 'object': account.invoice(91,)}Traceback (most recent call last):
File "/opt/odoo/odoo-10.0-e-201610281/odoo/addons/mail/models/mail_template.py", line 360, in render_template render_result = template.render(variables) File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render return self.environment.handle_exception(exc_info, True) File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception reraise(exc_type, exc_value, tb) File "<template>", line 18, in top-level template code File "/usr/lib/python2.7/site-packages/jinja2/sandbox.py", line 330, in getattr value = getattr(obj, attribute)UndefinedError: 'odoo.api.account.invoice object' has no attribute 'pricelist_id'
They could help me to solve the problem.
Can you Share your template ?
Error seems clear... no pricelist_id on invoice model