Skip to content

Commit

Permalink
[FIX]website_sale_ux: xml inheritance on cart button
Browse files Browse the repository at this point in the history
closes #248

Signed-off-by: Nicolas Mac Rouillon <nmr@adhoc.com.ar>
  • Loading branch information
JrAdhoc committed May 11, 2023
1 parent 82083e9 commit b688978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website_sale_ux/__manifest__.py
Expand Up @@ -20,7 +20,7 @@
{
'name': 'Website Sale UX',
'category': 'base.module_category_knowledge_management',
'version': "16.0.1.1.0",
'version': "16.0.1.2.0",
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
Expand Down
4 changes: 2 additions & 2 deletions website_sale_ux/views/product_template_views.xml
Expand Up @@ -15,10 +15,10 @@
<xpath expr="//a[@t-if='product._website_show_quick_add()']" position="attributes">
<attribute name="t-if">product._website_show_quick_add() and len(product.product_variant_ids) == 1</attribute>
</xpath>
<t t-if="product_variant_id and template_price_vals['price_reduce'] or not website.prevent_zero_price_sale" position="after">
<xpath expr="//a[hasclass('btn-primary')]/.." position="after">
<a class="btn btn-secondary btn-m" title="Shopping cart (Select attributes)" t-if="len(product.product_variant_ids) &gt; 1" t-att-href="keep('/shop/product/%s' % slug(product), page=(pager['page']['num'] if pager['page']['num']&gt;1 else None))">
<span class="fa fa-shopping-cart"/>
</a>
</t>
</xpath>
</template>
</odoo>

0 comments on commit b688978

Please sign in to comment.