Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
6748 Переглядів

I want to align the Validate button of the payment-screen to the right of pos-actionbar-button-list. Similarly I want to align the Next Order button in the receipt-screen to right of pos-actionbar-button-list. How can I do that?

Thanks in Advance

Sreedath

Аватар
Відмінити
Автор Найкраща відповідь

I have solved it some days back. I have created pos-actionbar-button-left and pos-actionbar-button-right instead of pos-actionbar-button-list and appended the button based on some condition. The JavaScript code is as below

    instance.point_of_sale.ActionBarWidget.include({
    add_new_button: function(button_options){
        var button = new instance.point_of_sale.ActionButtonWidget(this,button_options);
        this.button_list.push(button);
        if(button_options.name){
            this.buttons[button_options.name] = button;
        }
        if (button_options.name == 'validation' || button_options.label == "Next Order"){
            button.appendTo(this.$('.pos-actionbar-button-right'));
        }
        else{
            button.appendTo(this.$('.pos-actionbar-button-left'));
        }
        return button;
    },
});
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
бер. 25
1022
UPI Payment in Odoo 18 Вирішено
1
бер. 25
1729
2
лют. 25
2374
1
груд. 24
1996
0
серп. 24
1610