diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-08-26 08:48:17 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-08-26 13:01:14 +0000 |
| commit | 30d3ac79c7c61e2ecb9cfa5a7510f5798b4c325b (patch) | |
| tree | 975534d467d84b9f8431c64346c0eb20bac196c9 /addons/web/static/src/js/widgets/data_export.js | |
| parent | 22a11a6f4d0b08a56712fafd0f87a2e7bb5b00ec (diff) | |
[IMP] product, *: allow multiple lines for the same attribute
* = sale, website_sale, website_sale_comparison
Purpose
=======
This allows to handle use cases such as grape varieties for wine products where
multiple values need to be set for the same attribute, but they are all
informative and should not generate a choice or variants.
The general logic that existed previously is kept:
- multiple attribute lines on a product behave as an AND between them
- multiple values on a line behave as an OR between them
Example
=======
To generate 2 variants, with one possible value for each:
Line A: val 1, val 2
To generate 1 variant, with both informative values on it:
Line A: val 1
Line A: val 2
Technically
===========
- remove the constraints that prevented this use case from working since the
refactoring done in the previous commit removed the ambiguity when two
different lines have the same value
- update the product and comparison views accordingly
Extra
=====
- make the attribute category translatable and improve its list view
Final part of task-1912579
PR: #32946
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Co-authored-by: Juhil Somaiya <jso@odoo.com>
Co-authored-by: Sébastien Theys <seb@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/widgets/data_export.js')
0 files changed, 0 insertions, 0 deletions
