Skip to content

Commit be06e4d

Browse files
miguel-S73JasminSForgeFlow
authored andcommitted
[15.0][IMP] website_sale_checkout_skip_payment: hide payment message
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
1 parent 47903c5 commit be06e4d

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

website_sale_checkout_skip_payment/README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ Contributors
7878
* Alexandre Díaz
7979
* Carlos Roca
8080
* Martin Wilderoth <martin.wilderoth@linserv.se>
81+
* `Studio73 <https://www.studio73.es>`_:
82+
83+
* Miguel Gandia <miguel@studio73.es>
8184

8285
Maintainers
8386
~~~~~~~~~~~

website_sale_checkout_skip_payment/readme/CONTRIBUTORS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
* Alexandre Díaz
66
* Carlos Roca
77
* Martin Wilderoth <martin.wilderoth@linserv.se>
8+
* `Studio73 <https://www.studio73.es>`_:
9+
10+
* Miguel Gandia <miguel@studio73.es>

website_sale_checkout_skip_payment/static/description/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,10 @@ <h2><a class="toc-backref" href="#id6">Contributors</a></h2>
428428
</ul>
429429
</li>
430430
<li>Martin Wilderoth &lt;<a class="reference external" href="mailto:martin.wilderoth&#64;linserv.se">martin.wilderoth&#64;linserv.se</a>&gt;</li>
431+
<li><a class="reference external" href="https://www.studio73.es">Studio73</a>:<ul>
432+
<li>Miguel Gandia &lt;<a class="reference external" href="mailto:miguel&#64;studio73.es">miguel&#64;studio73.es</a>&gt;</li>
433+
</ul>
434+
</li>
431435
</ul>
432436
</div>
433437
<div class="section" id="maintainers">

website_sale_checkout_skip_payment/views/website_sale_template.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@
3232
</form>
3333
</div>
3434
</xpath>
35-
<xpath expr="//div[@id='payment_method']" position="attributes">
36-
<attribute
35+
<xpath
36+
expr="//t[@t-if='website_sale_order.amount_total']"
37+
position="attributes"
38+
>
39+
<attribute
3740
name="t-if"
38-
>(acquirers or tokens) and website_sale_order.amount_total and not website.checkout_skip_payment</attribute>
41+
separator=" "
42+
add="and not website.checkout_skip_payment"
43+
/>
3944
</xpath>
4045
<xpath expr="//div[hasclass('js_payment')]" position="attributes">
4146
<attribute

0 commit comments

Comments
 (0)