Skip to content
Snippets Groups Projects
Commit 36958865 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] account: avoid losing product on invoice

Add restriction on product_id field to prevent the suppression of the product
if already present in an invoice.
This is to avoid the suppression of a used product variant when modifying
the list of attributes.#
Due to the constrain, the variant will be disabled instead of deleted.
Fixes #4129

Add warning message on the product form to warn users about the potential impact
of modifying variants.
parent 5d60c1c8
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment