diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-10-24 11:56:42 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-10-24 12:04:19 +0200 |
| commit | 39a8b39a288d8909e53e71f75f6d06ab2d384bc9 (patch) | |
| tree | 560dd925b2694734f1edcc34fab06567e4a95c08 /addons/web/static/src/js/framework/data.js | |
| parent | 3164ca896283dcc74c0a93faec791a2bb96a14ec (diff) | |
[FIX] product: variant name_get for specific providers
This is related to revision
b65c67a2598fd3ad433af05ed49d398c473b76ae
The field `seller_ids` is a field which is set
on the `product.template`, and this is why
the condition `(x.product_id == product)` is being applied
in the list comprehension searching the current seller
of the product sellers.
The `variant` variable is a string containing
the attribute name of a variant.
Therefore, if a product tempalte has only one variant, without
any attribute (e.g. when you don't use variants),
`variant` will be empty, and therefore the condition
`if variant:` will be `False`, and therefore it won't search
in the product sellers with a specific `product.product`, while it
should, as, even if there are no attributes, there could be a
seller line with this specific `product.product`.
Besides, as we are in the `name_get` of `product.product`, and
not the `name_get` of `product.template`, we are always in the case
of a `variant`, this test is therefore pointless.
opw-682390
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
0 files changed, 0 insertions, 0 deletions
