Skip to content

Commit

Permalink
[13.0] [FIX] website_product_attribute_link: Set the value of the att…
Browse files Browse the repository at this point in the history
…ribute product to get ID.
  • Loading branch information
nicomacr authored and jjscarafia committed Feb 4, 2021
1 parent 117cd10 commit 4ed965b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website_product_attribute_link/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Product Attribute Link on Website Product view',
'version': '13.0.1.0.0',
'version': '13.0.1.1.0',
'category': 'Product',
'sequence': 14,
'summary': '',
Expand Down
Expand Up @@ -2,7 +2,7 @@
<odoo>
<template id="product" inherit_id="website_sale.product" name="Product attributes Link">
<span t-field="ptal.product_template_value_ids._only_active().name" position="replace">
<a t-if="attribute.website_link_on_product" t-att-href="keep('/shop/', attrib=['%s-%s' % (attribute.id, ptal.product_template_value_ids._only_active().id)], search='', category=0)">
<a t-if="attribute.website_link_on_product" t-att-href="keep('/shop/', attrib=['%s-%s' % (attribute.id, ptal.product_template_value_ids._only_active().product_attribute_value_id.id)], search='', category=0)">
<t>$0</t>
</a>
<t t-if="not attribute.website_link_on_product">$0</t>
Expand Down

0 comments on commit 4ed965b

Please sign in to comment.