Odoo Help

0

How to extend context for template

By
Alex
on 7/31/14, 3:04 AM 815 views

I have extended model mail.message using mechanizm of inheritance. Extended model has additional columns with types many2one and char.

Now I want to change template of mail.thread.message to make new columns be displayed in message.thread.

<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
    <t t-extend="mail.thread.message">
        <t t-jquery="div.oe_mail-placeholder" t-operation="after">

         <div>NEW COLUMN #1</div>

         <div>NEW COLUMN #2</div>

       </t>
    </t>
</templates>

 How can I change context for rendering tempate, add new columns to it and display new columns?

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: 7/31/14, 3:04 AM
Seen: 815 times
Last updated: 3/16/15, 8:10 AM