Odoo Help

0

Override mail template in Odoo 9

By
Mario Gielissen | Openworx
on 5/31/16, 6:05 AM 1,697 views

Is it possible to make changes to addons/mail/data/mail_data.xml, without changing the file itself, but with a custom module?

I want to change the header with send with Odoo removed

I tried it with this, but no luck:


<record id="mail_template_data_notification_email_default" model="mail.template">

<field name="body_html">=

Mario Gielissen | Openworx
on 5/31/16, 6:47 AM
0
Edser Solis
On 5/31/16, 8:43 AM

If what you're looking for is to remove the sent using odoo message search for the Notification Emails template and remove that whole small code paragraph that you can see there at the right. 

I know that, but I want to use a module for that: For odoo 9+ footer can be customized via Template Activate developer mode (Top right-hand corner -> About) Navigate to Settings\Technical\Email\Templates Select (set checkbox) "Notification Email" record click Action ->Export add field "Body" to export fields click "Export to Field" open csv via your editor Change footer as you need Navigate to Settings\Technical\Email\Templates click "Import" Validate and Import your file

Mario Gielissen | Openworx
on 5/31/16, 10:13 AM
0

Prakash Sharma

--Prakash Sharma--
823
| 3 1 5
Delhi, India
--Prakash Sharma--

I like to surround myself with brave, creative people.

My motivation for learning different technologies and algos drive me. I love challenges of a steep learning curve which I believe makes me a better learner. I have a strong desire to learn different technologies, which would enable me to become a full stack developer.

Prakash Sharma
On 5/31/16, 6:35 AM

create the demo data with the same id  in your custom module

And  in parallel use delete  tag to delete the already created demo data like

<delete model='mail.mail' search="[('id','=',ref('mail.ir_cron_mail_scheduler_action'))]" />

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

1 follower(s)

Stats

Asked: 5/31/16, 6:05 AM
Seen: 1697 times
Last updated: 5/31/16, 8:43 AM