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.

0

ODOO9: How to use field_manager.set_values for widget odoo

By
Drees Far
on 5/1/16, 2:53 PM 392 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.

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