We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 887d013 + ebc2d18 commit ab28d37Copy full SHA for ab28d37
pos_shift_partner_can_shop/static/src/js/ActionpadWidget.esm.js
@@ -14,10 +14,10 @@ const ActionpadWidgetConfirm = () =>
14
super.setup(...arguments);
15
}
16
17
- async trigger() {
+ async trigger(event_name) {
18
const customer_partner = this.env.pos.get_order().get_partner();
19
if (
20
- this.props.actionName.valueOf() === "Payment" &&
+ event_name === "click-pay" &&
21
customer_partner &&
22
!customer_partner.can_shop
23
) {
0 commit comments