Odoo Help

1

can i send email to many people

By
codefans
on 5/27/13, 1:07 AM 1,689 views

my email templaes like this :

    <!-- Email template for holiday -->
    <record id="holidays_require_email" model="email.template">
        <field name="name">holiday require</field>
        <field name="model_id" ref="hr_holidays.model_hr_holidays"/>
        <field name="email_from">holiday@test.com</field>
        <field name="email_to">
            <![CDATA[
                % if len(object.employee_id.parent_id):
                  'codefans3@gmail.com '
                % endif
                % for p_id in object.employee_id.parent_id:
                ${p_id.work_email}  
                % endfor
            ]]>
            </field>
        <field name="subject">Holiday require</field>
        <field name="body_html"><![CDATA[

${object.user_id.partner_id.name} have a leave action, please login in opnerp to comfirm




${object.web_url}

]]></field> </record>

but this did not work.
the field parent_id is many2many

how can i do with this

thanks

5

ClueLogics Technologies Pvt. Ltd.

--ClueLogics Technologies Pvt. Ltd.--
6133
| 6 5 8
Delhi NCR, India
--ClueLogics Technologies Pvt. Ltd.--

 ClueLogics Technologies Pvt Ltd is a Software product and services provider. We are positioned to deliver robust, rapid and reliable Information Technology solutions that work. What we succeed upon is Technology and Technical Expertise. The industry review of ClueLogics has been commendable for the past years as most of its business comes from repeat orders by highly satisfied clients.

ClueLogics Technologies Pvt. Ltd.
On 5/27/13, 3:30 AM

Hi

Of course you can send mail to many recipient

but you need to add , commas too

add emails after , commas

thanks
Sandeep

ok, thanks.

now i use a function field to store email.

if can i use this:

<field name="email_to"> <![CDATA[ % if len(object.employee_id.parent_id): 'codefans3@gmail.com ' % endif % for p_id in object.employee_id.parent_id: ${p_id.work_email}
% endfor ]]> </field>

codefans
on 5/27/13, 4:40 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 5/27/13, 1:07 AM
Seen: 1689 times
Last updated: 3/16/15, 8:10 AM