Odoo Help

8

3
6 Answers
8
Avatar

Yenthe Van Ginneken

--Yenthe Van Ginneken--
22087
| 9 9 12
Bélgica
--Yenthe Van Ginneken--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe Van Ginneken
30/07/15 03:15

Hi guys,

The solution is to create a (new) XML file under /static/src/xml and to include this file in your __openerp__.py. For inheriting this view you need to work with <templates> in place of <openerp><data>.
With a t-extend you can extend the view. For example for the calendar popup:

 <?xml version="1.0" encoding="utf-8"?>
<templates>
    <tr t-extend="CalendarView.quick_create">
        <t t-jquery=".form-group" t-operation="after">
            <div class="form-group">
                <h3>Example - put fields here </h3>
            </div>
        </t>
    </tr>
</templates>

Thats it!
Yenthe

4 Comments
Emipro Technologies Pvt. Ltd.
30/07/15 03:33

+1, Thanks I will test and let you know Yenthe. You're a star !

Emipro Technologies Pvt. Ltd.
30/07/15 03:34

@yenthe, I am so sorry that I couldn't got a time to give you solution.

Yenthe Van Ginneken
30/07/15 05:13

Thanks Emipro! It doesn't matter that you didn't have a solution yet, I have one now and I hope it saves you some time too :)

Prakash
09/02/16 10:08

@Yenthe: I would like to add custom many2one field in calendar pop up after inheriting the template CalendarView.quick_create. Is it possible?. And override Create Event button to save many2one field in the form (project.task). Thanks

Ask a Question
Keep Informed
3 follower(s)
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