[FIX] website_sale_digital: fix attachments stat button domain

Due to a syntax error in the domain of product attachement
a traceback was given.
This commit is contained in:
Pierre Masereel
2016-08-25 16:44:30 +02:00
parent ce4d207741
commit 4ccc1f9bc8
+2 -2
View File
@@ -46,8 +46,8 @@ class Product(models.Model):
return {
'name': _('Digital Attachments'),
'domain': [('product_downloadable', '=', True), '|',
'&', ('res_model', '=', 'product.template'), '&', ('res_id', '=', self.product_tmpl_id.id),
'&', ('res_model', '=', self._name), '&', ('res_id', '=', self.id)],
'&', ('res_model', '=', 'product.template'), ('res_id', '=', self.product_tmpl_id.id),
'&', ('res_model', '=', self._name), ('res_id', '=', self.id)],
'res_model': 'ir.attachment',
'type': 'ir.actions.act_window',
'view_mode': 'kanban,form',