Odoo Help

0

ODOO9: How to use field_manager.set_values for widget odoo

By
Drees Far
on 5/1/16, 2:53 PM 685 views

Hello everybody!!

My friends, i have developped a new widget but i want to set the value in a field of my class.

Here is the code:

 valider_prime : function(ev){

 

var self = this;

var salaire_base = self.salaire_base;

var primes_brut = self.primes_brut;

self.field_manager.set_values({

"adjustment_brut_amount" : primes_brut.toFixed(3),

"seemax_wage" : salaire_base,

});

self.$el.html(QWeb2.render("hr.contract.PrimeCalculReverse", {widget: self}));

},

PLease, need an answer.

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/1/16, 2:53 PM
Seen: 685 times
Last updated: 5/1/16, 2:53 PM