diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-06-25 11:49:05 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-06-25 14:45:46 +0000 |
| commit | b6a3b88856dab21b99dcf75cd6f78aaf619a8047 (patch) | |
| tree | 821ad57324bb458cf573fcb2bd6d06c72bc13eb3 /addons/mail/static/src/models/messaging_initializer/messaging_initializer.js | |
| parent | b93b2824d8d80779c33b6937b5f7ecafede2326d (diff) | |
[FIX] mrp: change product variant
- Create a product P with 2 variants A & B (e.g. 2 colors)
- Create the following BOM
Component 1
Component 2a, applies to variant A
Component 2b, applies to variant B
- Create a MO
- Set the product to variant A
=> 2 components are added: 1 and 2a
- Change the product to variant B
The component 2b is added but 2a is not removed.
The issue is coming from the result of the onchange, when comparing the
2 snapshots. The result contains the following commands:
- [(5,)]: clear the lines
- [(1, ...): ]: update component 1
- [(4, ...)]: keep component 2a
- [(0, ...)]: add component 2b
In case we are changing the product, we clear the lines.
opw-2270990
closes odoo/odoo#53689
X-original-commit: 89d9e759ae0cc31ad1fc398d41fa7a638056309e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/messaging_initializer/messaging_initializer.js')
0 files changed, 0 insertions, 0 deletions
