Odoo Help


how to execute xml code from JS function? WebCalendar

on 6/17/16, 5:59 AM 451 views

The requirment is i have created a dropdown button next to month button in calendar. If i click on that dropdown it show the value t1,t2,t3..

Now if i click t1 from dropdown. inside Calendar view it should display 't1'.

XML Code:

<div t-if="widget.model === 'service.advisor.planner'" id="myDropdown" class="dropdown-content">
<option value="planner">Planner</option>
<option value="bays">Bays</option>
<option value="drivers">Drivers</option>
<option value="technician">Technician</option>

JS code: written in fullcalendar.js

t.firstStep = firstStep;

function firstStep(this) {               
    //Grab information from input element object               
    // /and place them in local variables               
    var select_name = element.name;               
    var option_value = element.value;                   

var option_user_selection = element.options[ element.select_name ].text;

  I need to know that how to execute xml code from JS function?  

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: 6/17/16, 5:59 AM
Seen: 451 times
Last updated: 6/17/16, 7:46 AM