diff options
| author | Adrian Torres <adt@odoo.com> | 2018-02-26 15:12:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-26 15:12:25 +0100 |
| commit | 30db4cdd7511490d183fa084d5fff7bd9f34363a (patch) | |
| tree | d1f130512d482685281c3f363cbe20dfa0ee01a5 /addons/web/static/src | |
| parent | 3535904bce493e71217106f02795cab8b968f1d1 (diff) | |
[FIX] stock: remove existing demo data on reinstall
Previous to this rev.:
*Install stock w/ demo data
*Uninstall stock
*Reinstall stock
Result: Boom! Installation crashes.
Reason: The demo data installed with stock is not properly deleted after
the module is uninstalled, which causes issues/conflicts upon
reinstallation of the same demo data.
Solution: Remove any demo data of stock models upon installation if any
exist through a pre_init_hook, ideally this would be done by overriding
the unlink() of the affected models / setting some ondelete='cascade',
or even a uninstall_hook, however these solutions prove insufficient for
databases that are currently affected by the problem.
Fixes #22243
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
