Odoo Help

0

0
3 Answers
0
Jithin
2019/5/18 上午4:07

Hi Manfred Lopez,
You need to inherit 'finalize_validation' js function

pos_screen.PaymentScreenWidget.include({
show: function(){
this._super();
var self = this;
},
finalize_validation: function() {
this._super();
var self = this;
var order = this.pos.get_order(); // get all the info regarding purchase
var customer = this.pos.get_client(); // customer info
// other logics here
...
...
},
});


0
Dhaval Desai
2019/5/18 上午6:09

Hi,

first you can inherit 'finalize_validation'  function:

pos_screen.PaymentScreenWidget.include({
show: function(){
this._super();
var self = this;
},
finalize_validation: function() {
this._super();
var self = this;
var order = this.pos.get_order();
var customer = this.pos.get_client();
// other logics here, what you want
......
},
}); Thank you
0
Manfred Lopez
2019/5/20 上午10:41

Thanks for the reply.

Ask a Question
Keep Informed
1 follower(s)
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