Odoo Help


How to extend context for template

on 7/31/14, 3:04 AM 1,260 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>


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

did you put in in qweb : { } instead of data: { } ?

Fatih Piristine
on 7/24/17, 12:14 PM
Elsa Bakiu
On 7/24/17, 11:12 AM

Hi Alex, 

I am trying to achieve the same thing. Did you find a solution?



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.


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)


Asked: 7/31/14, 3:04 AM
Seen: 1260 times
Last updated: 7/24/17, 11:12 AM