Skip to content

Commit

Permalink
[14.0][IMP] website_sale_checkout_skip_payment: hide new payment message
Browse files Browse the repository at this point in the history
Odoo has recently added a new 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.
odoo/odoo@3c43edc
  • Loading branch information
miguel-S73 committed Feb 15, 2023
1 parent 44ad9cf commit 18ea4c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website_sale_checkout_skip_payment/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Website Sale Checkout Skip Payment
:target: https://runbot.odoo-community.org/runbot/113/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to logged users to checkout with no payment step. At the
end of the checkout proccess the quotation is sent to the user email address
Expand Down Expand Up @@ -76,6 +76,10 @@ Contributors
* Martin Wilderoth <martin.wilderoth@linserv.se>
* Alexandre Díaz <alexandre.diaz@tecnativa.com>

* `Studio73 <https://www.studio73.es>`_:

* Miguel Gandia <miguel@studio73.es>

Maintainers
~~~~~~~~~~~

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
name="t-if"
>not website_sale_order.amount_total and not website.checkout_skip_payment</attribute>
</xpath>
<xpath expr="//div[@t-if='not (acquirers or tokens)']" position="attributes">
<attribute
name="t-if"
separator=" "
add="and not website.checkout_skip_payment"
/>
</xpath>
</template>
<template id="confirmation" inherit_id="website_sale.confirmation">
<xpath
Expand Down

0 comments on commit 18ea4c7

Please sign in to comment.