mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-28 03:52:01 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
from . import event_sale_report
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class EventSaleReport(models.Model):
|
||||
_inherit = 'event.sale.report'
|
||||
|
||||
is_published = fields.Boolean('Published Events', readonly=True)
|
||||
|
||||
def _select_clause(self, *select):
|
||||
return super()._select_clause('event_event.is_published as is_published', *select)
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="event_sale_report_view_search" model="ir.ui.view">
|
||||
<field name="name">event.sale.report.view.search.inherit.website</field>
|
||||
<field name="model">event.sale.report</field>
|
||||
<field name="inherit_id" ref="event_sale.event_sale_report_view_search"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//search" position="inside">
|
||||
<filter string="Published Events" name="is_published" domain="[('is_published', '=', True)]"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue