From cd1da32dced47f5b944891c7d07698fadf86baed Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sun, 21 Aug 2016 13:54:51 -0700 Subject: [PATCH] [IMP] mrp: better kanban view for attachments --- addons/mrp/views/ir_attachment_view.xml | 17 ++++++++--------- addons/product/models/product_template.py | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/addons/mrp/views/ir_attachment_view.xml b/addons/mrp/views/ir_attachment_view.xml index 8ba2f3ba123..c23f71513bf 100644 --- a/addons/mrp/views/ir_attachment_view.xml +++ b/addons/mrp/views/ir_attachment_view.xml @@ -18,7 +18,7 @@
- -
-
- -
-
- +
+
+
+
+ +
@@ -44,4 +43,4 @@ - \ No newline at end of file + diff --git a/addons/product/models/product_template.py b/addons/product/models/product_template.py index 08d41c52a28..09a9096bd81 100644 --- a/addons/product/models/product_template.py +++ b/addons/product/models/product_template.py @@ -304,7 +304,7 @@ class ProductTemplate(models.Model): # re-apply product.template order + name_get return super(ProductTemplate, self).name_search( - '', args=[('id', 'in', templates.ids)], + '', args=[('id', 'in', list(set(templates.ids)))], operator='ilike', limit=limit) @api.multi