From dba1a641e37b2f8c6265d3be3ec3c0998acb532b Mon Sep 17 00:00:00 2001 From: keyur gajjar Date: Mon, 25 Jul 2016 11:13:01 +0530 Subject: [PATCH] [IMP] website_sale_digital: add message when no record Proper message should be displayed when no records in attachments kanban view when we click on 'File' stat button on product form view. --- addons/website_sale_digital/models/product.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/website_sale_digital/models/product.py b/addons/website_sale_digital/models/product.py index 6dcd85f539f..02e35b16d3c 100644 --- a/addons/website_sale_digital/models/product.py +++ b/addons/website_sale_digital/models/product.py @@ -27,6 +27,10 @@ class ProductTemplate(models.Model): 'view_mode': 'kanban,form', 'view_type': 'form', 'context': "{'default_res_model': '%s','default_res_id': %d, 'default_product_downloadable': True}" % (self._name, self.id), + 'help': """ +

Click on create to add attachments for this digital product.

+

The attached files are the ones that will be purchased and sent to the customer.

+ """, } @@ -56,4 +60,8 @@ class Product(models.Model): 'view_mode': 'kanban,form', 'view_type': 'form', 'context': "{'default_res_model': '%s','default_res_id': %d, 'default_product_downloadable': True}" % (self._name, self.id), + 'help': """ +

Click on create to add attachments for this digital product.

+

The attached files are the ones that will be purchased and sent to the customer.

+ """, }