Skip to content

Commit e6562fe

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 Set field external id to new format
1 parent 584662c commit e6562fe

File tree

6 files changed

+182
-180
lines changed

6 files changed

+182
-180
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_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/tests/test_database_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def setUp(self):
1616
self.model = None
1717
# Create one property for tests
1818
self.env['ir.property'].create({
19-
'fields_id': self.env.ref('base.field_res_partner_name').id,
19+
'fields_id': self.env.ref('base.field_res_partner__name').id,
2020
'type': 'char',
2121
'value_text': 'My default partner name',
2222
})

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)