3
0
Fork 0

Update web_dashboard_tile/models/tile_category.py

Co-authored-by: Iván Todorovich <ivan.todorovich@gmail.com>
16.0
Sylvain LE GAL 2021-08-15 21:49:43 +02:00
parent 8128f242db
commit 1ba8b5fc03
2 changed files with 6 additions and 10 deletions

View File

@ -8,15 +8,11 @@
"depends": ["web", "board", "mail", "web_widget_color"], "depends": ["web", "board", "mail", "web_widget_color"],
"author": "initOS GmbH & Co. KG, " "author": "initOS GmbH & Co. KG, "
"GRAP, " "GRAP, "
"Iván Todorovich <ivan.todorovich@gmail.com>, "
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"], "maintainers": ["legalsylvain"],
"category": "web", "category": "web",
"license": "AGPL-3", "license": "AGPL-3",
"contributors": [
"initOS GmbH & Co. KG",
"GRAP",
"Iván Todorovich <ivan.todorovich@gmail.com>",
],
"data": [ "data": [
"security/ir.model.access.csv", "security/ir.model.access.csv",
"security/ir_rule.xml", "security/ir_rule.xml",

View File

@ -45,11 +45,11 @@ class TileCategory(models.Model):
'res_model': 'tile.tile', 'res_model': 'tile.tile',
'type': 'ir.actions.act_window', 'type': 'ir.actions.act_window',
'view_mode': 'kanban', 'view_mode': 'kanban',
'domain': "[" 'domain': """[
"('hidden', '=', False)," ('hidden', '=', False),
"'|', ('user_id', '=', False), ('user_id', '=', uid)," '|', ('user_id', '=', False), ('user_id', '=', uid),
"('category_id', '=', %d)" ('category_id', '=', {self.id})
"]" % self.id, ]""".format(self=self),
} }
def _prepare_menu(self): def _prepare_menu(self):