addons/website_event_sale/report/event_sale_report.py
raw| 1 | # -*- coding: utf-8 -*- |
| 2 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 3 | |
| 4 | from odoo import fields, models |
| 5 | |
| 6 | |
| 7 | class EventSaleReport(models.Model): |
| 8 | _inherit = 'event.sale.report' |
| 9 | |
| 10 | is_published = fields.Boolean('Published Events', readonly=True) |
| 11 | |
| 12 | def _select_clause(self, *select): |
| 13 | return super()._select_clause('event_event.is_published as is_published', *select) |