ZestyBeanz Technologies Pvt Ltd
4th Floor, Nila, Technopark
Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171
ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254
Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222
Mobile: +971-52-7553466
ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445
Dear Prajul, I started to
Dear Prajul,
I started to implement Openerp v7 and the code I used
<?php y = [z.email for z in object.attendee_ids] ?>
${','.join(y)} is not longer working.I get errors like openerp.addons.email_template.email_template: failed to render mako template value u"
<?php y = [z.partner.name for z in object.partner_ids] ?>
${','.join(y)}"Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/email_template/email_template.py", line 99, in render_template
result = mako_template_env.from_string(template).render(variables)
File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 669, in render
return self.environment.handle_exception(exc_info, True)
File "", line 1, in top-level template code
File "/usr/lib64/python2.6/site-packages/jinja2/sandbox.py", line 225, in getattr
value = getattr(obj, attribute)
UndefinedError: 'browse_record' object has no attribute 'partner_id'
Traceback (most recent call last):
File "/opt/openerp/server/openerp/addons/email_template/email_template.py", line 99, in render_template
result = mako_template_env.from_string(template).render(variables)
File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 563, in from_string
return cls.from_code(self, self.compile(source), globals, None)
File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 448, in compile
self.handle_exception(exc_info, source_hint=source)
File "", line 1, in template
TemplateSyntaxError: unknown tag 'y'
I think to understand that the issue is the variable but can't find out how to solve it
Best regards
Marie