Odoo Help

0

0
3 Answers
0
Avatar

Jithin

--Jithin--

816
| 5 1 7
Calicut, India
--Jithin--



Jithin
18.05.19, 04: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
Manfred Lopez
20.05.19, 10:41

Thanks for the reply.

-1
Dhaval Desai
18.05.19, 06: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
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 eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now