website.py 348 B

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