summaryrefslogtreecommitdiff
path: root/addons/website_event_sale/models/website.py
blob: d1bf0a4f449a06b30188918085a303c6acb2b251 (plain)
1
2
3
4
5
6
7
8
9
10
11
# -*- 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() + [('event_ok', '=', False)]