Skip to content

Commit 5682e42

Browse files
committed
[IMP] pos_customer_wallet_partner_is_user: Hide payment method conditionally
If partner is not a user, don't show the payment method. Signed-off-by: Carmen Bianca BAKKER <[email protected]>
1 parent 5b22f64 commit 5682e42

File tree

1 file changed

+21
-0
lines changed
  • pos_customer_wallet_partner_is_user/static/src/xml/Screens/PaymentScreen

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!--
3+
SPDX-FileCopyrightText: 2024 Coop IT Easy SC
4+
5+
SPDX-License-Identifier: AGPL-3.0-or-later
6+
-->
7+
<templates id="template" xml:space="preserve">
8+
9+
<t
10+
t-name="PaymentScreen"
11+
t-inherit="point_of_sale.PaymentScreen"
12+
t-inherit-mode="extension"
13+
owl="1"
14+
>
15+
<xpath expr="//div[hasclass('paymentmethod')]" position="attributes">
16+
<attribute
17+
name="t-if"
18+
>!paymentMethod.is_customer_wallet_method || currentOrder.get_partner().is_customer_wallet_user</attribute>
19+
</xpath>
20+
</t>
21+
</templates>

0 commit comments

Comments
 (0)