Odoo 도움말

0

0
3 응답
0
Avatar
--Jithin--



Jithin India
19. 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
Manfred Lopez Guatemala
19. 5. 20. 오전 10:41

Thanks for the reply.

-1
Avatar

Dhaval Desai India

--Dhaval Desai--

807
| 2 1 4
Gandhinagar, India
--Dhaval Desai--

Senior Odoo Developer

Dhaval Desai India
19. 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
질문하기
Keep Informed
1 팔로워
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