diff --git a/web_dashboard_tile/__manifest__.py b/web_dashboard_tile/__manifest__.py index 8b990f891..b4b82d2ee 100644 --- a/web_dashboard_tile/__manifest__.py +++ b/web_dashboard_tile/__manifest__.py @@ -8,15 +8,11 @@ "depends": ["web", "board", "mail", "web_widget_color"], "author": "initOS GmbH & Co. KG, " "GRAP, " + "Iván Todorovich , " "Odoo Community Association (OCA)", "maintainers": ["legalsylvain"], "category": "web", "license": "AGPL-3", - "contributors": [ - "initOS GmbH & Co. KG", - "GRAP", - "Iván Todorovich ", - ], "data": [ "security/ir.model.access.csv", "security/ir_rule.xml", diff --git a/web_dashboard_tile/models/tile_category.py b/web_dashboard_tile/models/tile_category.py index d412fa939..f43c96369 100644 --- a/web_dashboard_tile/models/tile_category.py +++ b/web_dashboard_tile/models/tile_category.py @@ -45,11 +45,11 @@ class TileCategory(models.Model): 'res_model': 'tile.tile', 'type': 'ir.actions.act_window', 'view_mode': 'kanban', - 'domain': "[" - "('hidden', '=', False)," - "'|', ('user_id', '=', False), ('user_id', '=', uid)," - "('category_id', '=', %d)" - "]" % self.id, + 'domain': """[ + ('hidden', '=', False), + '|', ('user_id', '=', False), ('user_id', '=', uid), + ('category_id', '=', {self.id}) + ]""".format(self=self), } def _prepare_menu(self):