Hi guys,
I usually have no problems at all with inheritance but I can't inherit the popup dialog which is on the calendar view.
The code is in the module calender, which you can find here: https://github.com/odoo/odoo/blob/8.0/addons/web_calendar/static/src/xml/web_fullcalendar.xml#L57-70
It has the following code:
<div t-name="CalendarView.quick_create" class="oe_calendar_quick_create openerp"> <div class="form-group"> <label for='name' class='control-label'>Event summary:</label> <input name='name' class="form-control"/> </div> <t t-if="widget._buttons"> <div class="oe_calendar_quick_create_buttons"> <button class="openerp oe_button oe_highlight oe_calendar_quick_create_add ">Create event</button> <button class="oe_button oe_form_button oe_link oe_calendar_quick_create_edit" ><span>Edit Event <![CDATA[]]></span></button> </div> </t> </div>
A simple question: what is the correct way to inherit this? it has no template id and/or name so how can I inherit that div t-name and add a field after this line with xpath?
<input name='name' class="form-control"/>
Thanks,
Yenthe
"Template inheritance is performed via the t-extend directive which takes the name of the template to alter as parameter." src : https://www.odoo.com/documentation/8.0/reference/qweb.html
@yenthe, I noted down your issue. Definitely I will keep you updated after trying at my side. Since so many days I am facing this problem ( in some of web templates ) Before me if you have got the answer then don't hesitate to post here, otherwise I will give you answer surely within short time. I have marked this question as important.
and yes, +1 from me !
@david I'm aware of the t-extend but they do not seem to work on templates in another module without name/ID. @Emipro thanks! If I find a solution I will post it here too!
+1, Me too I'm trying to change the behavior of the popup ...
@Emipro and @Ahmed I've posted the solution to inherit these views.