Odoo Help

Welcome!

This community 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.

1

Unable to append dynamic data to custom login page theme

By
chirra
on 5/12/16, 7:31 AM 220 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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

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