Skip to content

Commit ab28d37

Browse files
Merge PR #563 into 16.0
Signed-off-by remytms
2 parents 887d013 + ebc2d18 commit ab28d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pos_shift_partner_can_shop/static/src/js/ActionpadWidget.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const ActionpadWidgetConfirm = () =>
1414
super.setup(...arguments);
1515
}
1616

17-
async trigger() {
17+
async trigger(event_name) {
1818
const customer_partner = this.env.pos.get_order().get_partner();
1919
if (
20-
this.props.actionName.valueOf() === "Payment" &&
20+
event_name === "click-pay" &&
2121
customer_partner &&
2222
!customer_partner.can_shop
2323
) {

0 commit comments

Comments
 (0)