Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
6153 Представления

Hello All 

how are you doing ?

how to inherit payment button on pos screen?

what i need to do is when i click on payment under specific condition will go direct to receipt screen because i have been select the payment from that condition.


FYI:

operating system: Ubuntu 16

Odoo V: 10

Is enterprise: no



best regards       

Аватар
Отменить
Лучший ответ
To inherit payment button you have to inherit ActionpadWidget. You can do it like below:

var pos_screen = require('point_of_sale.screens');

pos_screen.ActionpadWidget.include({ 

init: function(parent, options) {
var self = this;
this._super(parent, options);

       //YOURE CODE HERE 

},
renderElement: function() {
var self = this;
this._super();

        //YOURE CODE HERE 

}
});
Аватар
Отменить
Автор

Thanks bro

another Q

if i need :

*******************

pos_screen.ActionpadWidget.include({

init: function(parent, options) {

var self = this;

this._super(parent, options);

//YOURE CODE HERE

},

renderElement: function() {

var self = this;

this._super();

//HERE I NEED TO SET PAYMENT METHOD AND SHOW RECEIPT SCREEN

}

});

****************************

For that you can create a custom receipt screen and call it based on some conditions in renderElement function.

Related Posts Ответы Просмотры Активность
3
сент. 23
5616
0
июл. 22
3327
0
июл. 22
1890
3
окт. 21
7707
2
мар. 20
7674