diff options
| author | Nicolas Galler <ngl@odoo.com> | 2020-10-22 13:04:14 +0000 |
|---|---|---|
| committer | Nicolas Galler <ngl@odoo.com> | 2020-10-23 14:05:05 +0000 |
| commit | c51867b785aab707b1059d6545b9fce7e95a2488 (patch) | |
| tree | fd02aa6baf18619c2c37bdfbe4639e762edb386f /addons/base_import/static/lib/javascript-state-machine/Rakefile | |
| parent | 8a949019fd39c6c07ae5827462ee96e15f3190a1 (diff) | |
[FIX] product: archiving last variant must archive product template
Behavior prior to this fix:
When archiving the last variant on a template, the product template
stays active (contrary to the comment indicating that `toggle_active`
will archive the related product.template if there is only one active
`product.product`).
Behavior after the fix:
When archiving the last variant on a template, the product template is
archived. When un-archiving that variant, the product template is
unarchived as well, without un-archiving the other variants.
Note: this is a remake of a fix implemented in 77e5472c041e, as that fix
did not correctly count the inactive variants.
opw-2349862
closes odoo/odoo#60635
X-original-commit: 01160ee5e7f726f3035c566a13e26825236dedfd
Signed-off-by: Nicolas Galler <nicocrm@users.noreply.github.com>
Diffstat (limited to 'addons/base_import/static/lib/javascript-state-machine/Rakefile')
0 files changed, 0 insertions, 0 deletions
