summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2018-02-26 15:12:25 +0100
committerGitHub <noreply@github.com>2018-02-26 15:12:25 +0100
commit30db4cdd7511490d183fa084d5fff7bd9f34363a (patch)
treed1f130512d482685281c3f363cbe20dfa0ee01a5 /addons/web/static/src/js/views/basic
parent3535904bce493e71217106f02795cab8b968f1d1 (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/js/views/basic')
0 files changed, 0 insertions, 0 deletions