Skip to content

Commit

Permalink
[FIX][mass_editing] Allow to delete models
Browse files Browse the repository at this point in the history
Without this fix, it is impossible to uninstall an addon that removes a model for which we had a `mass.object`.
  • Loading branch information
yajo committed Sep 6, 2017
1 parent e6b62af commit 97b5588
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions mass_editing/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Contributors

* Oihane Crucelaegui <[email protected]>
* Serpent Consulting Services Pvt. Ltd. <[email protected]>
* Jairo Llopis <[email protected]>

Maintainer
----------
Expand Down
3 changes: 2 additions & 1 deletion mass_editing/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Mass Editing',
'version': '10.0.1.0.0',
'version': '10.0.1.1.0',
'author': 'Serpent Consulting Services Pvt. Ltd., '
'Tecnativa, '
'Odoo Community Association (OCA)',
'contributors': [
'Oihane Crucelaegui <[email protected]>',
Expand Down
1 change: 1 addition & 0 deletions mass_editing/models/mass_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class MassObject(models.Model):

name = fields.Char('Name', required=True, index=1)
model_id = fields.Many2one('ir.model', 'Model', required=True,
ondelete="cascade",
help="Model is used for Selecting Fields. "
"This is editable until Sidebar menu "
"is not created.")
Expand Down

0 comments on commit 97b5588

Please sign in to comment.