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 authored and pilarvargas-tecnativa committed Oct 22, 2024
1 parent c7569e2 commit 73a6186
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions website_sale_checkout_skip_payment/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ Contributors
* Alexandre Díaz
* Carlos Roca
* Martin Wilderoth <martin.wilderoth@linserv.se>
* `Studio73 <https://www.studio73.es>`_:

* Miguel Gandia <miguel@studio73.es>

Maintainers
~~~~~~~~~~~
Expand Down
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 @@ -428,6 +428,10 @@ <h2><a class="toc-backref" href="#id6">Contributors</a></h2>
</ul>
</li>
<li>Martin Wilderoth &lt;<a class="reference external" href="mailto:martin.wilderoth&#64;linserv.se">martin.wilderoth&#64;linserv.se</a>&gt;</li>
<li><a class="reference external" href="https://www.studio73.es">Studio73</a>:<ul>
<li>Miguel Gandia &lt;<a class="reference external" href="mailto:miguel&#64;studio73.es">miguel&#64;studio73.es</a>&gt;</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
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 73a6186

Please sign in to comment.