Skip to content

Commit

Permalink
[IMP] pos_customer_wallet_partner_is_user: Hide payment method condit…
Browse files Browse the repository at this point in the history
…ionally

If partner is not a user, don't show the payment method.

The deleted JS code is made obsolete/superfluous because the payment
method cannot even be selected now.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Jan 22, 2024
1 parent 5b22f64 commit 9b3ed72
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 50 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
SPDX-FileCopyrightText: 2024 Coop IT Easy SC
SPDX-License-Identifier: AGPL-3.0-or-later
-->
<templates id="template" xml:space="preserve">

<t
t-name="PaymentScreen"
t-inherit="point_of_sale.PaymentScreen"
t-inherit-mode="extension"
owl="1"
>
<xpath expr="//div[hasclass('paymentmethod')]" position="attributes">
<attribute
name="t-if"
>!paymentMethod.is_customer_wallet_method || currentOrder.get_partner().is_customer_wallet_user</attribute>
</xpath>
</t>
</templates>

0 comments on commit 9b3ed72

Please sign in to comment.