From 02409896ccaa54ad1d0927175db777dfdfd5cfca Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Sun, 15 Aug 2021 21:49:43 +0200 Subject: [PATCH] Update web_dashboard_tile/models/tile_category.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Iván Todorovich --- web_dashboard_tile/__manifest__.py | 6 +----- web_dashboard_tile/models/tile_category.py | 10 +++++----- 2 files changed, 6 insertions(+), 10 deletions(-) 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):