Odoo Help

Yenthe Van Ginneken
On 7/30/15, 3:15 AM

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"?>
    <tr t-extend="CalendarView.quick_create">
        <t t-jquery=".form-group" t-operation="after">
            <div class="form-group">
                <h3>Example - put fields here </h3>

Thats it!

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

on 7/30/15, 3:33 AM

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

on 7/30/15, 3:34 AM

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 :)

Yenthe Van Ginneken
on 7/30/15, 5:13 AM

@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

on 2/9/16, 10:08 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)


Asked: 7/23/15, 4:30 AM
Seen: 4716 times
Last updated: 12/20/18, 10:59 AM