Skip to content

Commit

Permalink
[15.0][IMP] website_sale_checkout_skip_payment: hide payment message
Browse files Browse the repository at this point in the history
Alert message in the payment section of the web payment gateway so it
is convenient for this module to hide this message when
skip_website_checkout_payment is enabled.

Detected on Odoo 14.0  OCA/pull/752
  • Loading branch information
miguel-S73 committed Feb 15, 2023
1 parent 2925cfd commit 256e2f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions website_sale_checkout_skip_payment/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
* Alexandre Díaz
* Carlos Roca
* Martin Wilderoth <martin.wilderoth@linserv.se>
* `Studio73 <https://www.studio73.es>`_:

* Miguel Gandia <miguel@studio73.es>
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,15 @@
</form>
</div>
</xpath>
<xpath expr="//div[@id='payment_method']" position="attributes">
<attribute
<xpath
expr="//t[@t-if='website_sale_order.amount_total']"
position="attributes"
>
<attribute
name="t-if"
>(acquirers or tokens) and website_sale_order.amount_total and not website.checkout_skip_payment</attribute>
separator=" "
add="and not website.checkout_skip_payment"
/>
</xpath>
<xpath expr="//div[hasclass('js_payment')]" position="attributes">
<attribute
Expand Down

0 comments on commit 256e2f4

Please sign in to comment.