flectra/addons/website_event_sale/models/website.py
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

12 lines
340 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() + [('event_ok', '=', False)]