summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2015-01-30 19:45:12 +0100
committerOlivier Dony <odo@openerp.com>2015-01-30 19:45:14 +0100
commitc18a7eb82ae1a4a7cfd05c6e70bbf8c81e409ca9 (patch)
treea7b911540cbd35b764c27084ad12cc9c4ffda5c5 /addons/analytic_user_function
parent6451a553c0108cccc2d5cef3c54108d358473444 (diff)
[FIX] website_sale: visible attributes wrongly computed for some variants
On one hand, when a product attribute is shared by several products, some may use different subsets of its possible values. On the other hand, when less than 2 values are enabled for a given attribute on a product, no choice is displayed for that attribute on the shop page, as there is none to be made. The way those "visible attributes" were computed in get_attribute_values() was wrong: when counting the number of values it used the whole range of possible values for this attribute (cross-product), not just those enabled for that product. This lead to inconsistencies vs the website_sale.variants template, and products using a single value out of a larger range of values were constantly marked as "Not available" in the shop.
Diffstat (limited to 'addons/analytic_user_function')
0 files changed, 0 insertions, 0 deletions