Odoo Help

1

Unable to append dynamic data to custom login page theme

By
chirra
on 5/12/16, 7:31 AM 376 views

 var instance = openerp;

var QWeb = openerp.web.qweb;

_t = instance.web._t;

var today = new Date();

var Users = new openerp.Model('hr.employee');

Users.query([ 'id', 'name', 'birthday' ]).all().then(

function(users) {

_.each(users, function(user) {

var bday = new Date(user.birthday);

if (bday.getMonth() == today.getMonth()

&& bday.getDate() == today.getDate()) {

alert(user.name);

$('#abc').append(user.name);

}

});

});

here  $('#abc').append(user.name); this place i tried different ways to bind data login page.please suggest how can bind dynamic data in login page 

Thanks.

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

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)

Stats

Asked: 5/12/16, 7:31 AM
Seen: 376 times
Last updated: 5/13/16, 3:04 AM