create golem_event and edit upcoming filter
This commit is contained in:
parent
60d9e37d9b
commit
adc449fca5
17
golem_event/__init__.py
Normal file
17
golem_event/__init__.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright 2020 Fabien Bourgeois <fabien@yaltik.com>
|
||||||
|
# Copyright 2020 Youssef EL OUAHBY <youssef@yaltik.com>
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
33
golem_event/__manifest__.py
Normal file
33
golem_event/__manifest__.py
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
# Copyright 2020 Fabien Bourgeois <fabien@yaltik.com>
|
||||||
|
# Copyright 2020 Youssef EL OUAHBY <youssef@yaltik.com>
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
{
|
||||||
|
'name': 'GOLEM events',
|
||||||
|
'summary': 'Extends Odoo events',
|
||||||
|
'description': 'Extends Odoo events',
|
||||||
|
'version': '10.0.0.0.1',
|
||||||
|
'category': 'GOLEM',
|
||||||
|
'author': 'Fabien Bourgeois, Youssef EL OUAHBY',
|
||||||
|
'license': 'AGPL-3',
|
||||||
|
'application': True,
|
||||||
|
'installable': True,
|
||||||
|
'depends': ['event'],
|
||||||
|
'data': [
|
||||||
|
'views/event_views.xml',
|
||||||
|
]
|
||||||
|
}
|
BIN
golem_event/static/description/icon.png
Normal file
BIN
golem_event/static/description/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.3 KiB |
36
golem_event/views/event_views.xml
Normal file
36
golem_event/views/event_views.xml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright 2020 Fabien Bourgeois <fabien@yaltik.com>
|
||||||
|
Copyright 2020 Youssef EL OUAHBY <youssef@yaltik.com>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
<odoo>
|
||||||
|
<data>
|
||||||
|
<record id="golem_event_inherit_view_event_search" model="ir.ui.view">
|
||||||
|
<field name="name">Golem Event Tracks</field>
|
||||||
|
<field name="inherit_id" ref="event.view_event_search"/>
|
||||||
|
<field name="model">event.event</field>
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<filter name="upcoming" position="replace">
|
||||||
|
<filter string="Current and Upcoming" name="upcoming"
|
||||||
|
domain="['&', ('state', '!=', 'cancel'), '|',
|
||||||
|
('date_begin','>=', datetime.datetime.combine(context_today(), datetime.time(0,0,0))),
|
||||||
|
('date_end','>=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]"
|
||||||
|
help="Upcoming events from today" />
|
||||||
|
</filter>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
</odoo>
|
Loading…
Reference in New Issue
Block a user