Odoo Help

0

how to add button in mail module?

By
Demirel yakito
on 4/15/15, 1:10 AM 889 views

i want to add one button in the messaing menu-> inbox. There is three buttons 'Mark as Todo', 'reply' and 'Done'. i want to add button, after the 'reply' button.  how to do this?

1

In __openerp__.py,
add 'qweb': ['static/src/xml/YOUR_FILE_NAME.xml']

In YOUR_FILE_NAME.xml stored @ static/src/xml

 <?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
   <t t-extend="mail.thread.message">
        <t t-jquery="span[class=oe_reply]" t-operation="before">
            <span class='oe_YOUR_CLASS'><a title="YOUR TITLE" class="oe_e">*</a></span>
        </t>
   </t>
</templates>


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: 4/15/15, 1:10 AM
Seen: 889 times
Last updated: 4/15/15, 1:37 AM