Skip to content

Commit b71ae28

Browse files
committed
[MIG] database_cleanup: migration to 12.0
Update version number Use correct import Update .pot to match new syntax Adapt icon to fontawesome Add models description
1 parent f1883e0 commit b71ae28

File tree

7 files changed

+183
-179
lines changed

7 files changed

+183
-179
lines changed

database_cleanup/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
33
{
44
'name': 'Database cleanup',
5-
'version': '11.0.1.0.0',
5+
'version': '12.0.1.0.0',
66
'author': "Therp BV,Odoo Community Association (OCA)",
77
'depends': ['base'],
88
'license': 'AGPL-3',

database_cleanup/i18n/database_cleanup.pot

Lines changed: 177 additions & 175 deletions
Large diffs are not rendered by default.

database_cleanup/models/purge_columns.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
class CleanupPurgeLineColumn(models.TransientModel):
1010
_inherit = 'cleanup.purge.line'
1111
_name = 'cleanup.purge.line.column'
12+
_description = 'Purge Column Wizard Lines'
1213

1314
model_id = fields.Many2one('ir.model', 'Model', required=True,
1415
ondelete='CASCADE')

database_cleanup/models/purge_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# pylint: disable=consider-merging-classes-inherited
44
from odoo import _, api, models, fields
55
from odoo.exceptions import UserError
6-
from odoo.addons.base.ir.ir_model import MODULE_UNINSTALL_FLAG
6+
from odoo.addons.base.models.ir_model import MODULE_UNINSTALL_FLAG
77

88

99
class IrModel(models.Model):

database_cleanup/models/purge_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from odoo import _, api, fields, models
55
from odoo.exceptions import UserError
66
from odoo.modules.module import get_module_path
7-
from odoo.addons.base.ir.ir_model import MODULE_UNINSTALL_FLAG
7+
from odoo.addons.base.models.ir_model import MODULE_UNINSTALL_FLAG
88

99

1010
class IrModelData(models.Model):

database_cleanup/models/purge_tables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
class CleanupPurgeLineTable(models.TransientModel):
1010
_inherit = 'cleanup.purge.line'
1111
_name = 'cleanup.purge.line.table'
12+
_description = 'Purge tables wizard lines'
1213

1314
wizard_id = fields.Many2one(
1415
'cleanup.purge.wizard.table', 'Purge Wizard', readonly=True)

database_cleanup/views/purge_wizard.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<field name="name" />
3535
<field name="purged" />
3636
<button type="object" name="purge"
37-
icon="gtk-cancel" string="Purge this model"
37+
icon="fa-times-circle text-danger" string="Purge this model"
3838
attrs="{'invisible': [('purged', '=', True)]}"/>
3939
</tree>
4040
</field>

0 commit comments

Comments
 (0)