[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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user