12 lines
348 B
Python

# -*- coding: utf-8 -*-
from odoo import models
class Website(models.Model):
_inherit = 'website'
def sale_product_domain(self):
# remove product event from the website content grid and list view (not removed in detail view)
return ['&'] + super(Website, self).sale_product_domain() + [('detailed_type', '!=', 'event')]