India

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

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Contact Form


Marie's picture

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

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo], [[foo]]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.