-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
246 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
================== | ||
Geoengine Calendar | ||
================== | ||
|
||
Geospatial support of calendar | ||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
#. Do this ... | ||
|
||
Configuration | ||
============= | ||
|
||
To configure this module, you need to: | ||
|
||
#. Go to ... | ||
|
||
.. figure:: path/to/local/image.png | ||
:alt: alternative description | ||
:width: 600 px | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
#. Go to ... | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch} | ||
|
||
.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt | ||
.. branch is "8.0" for example | ||
Known issues / Roadmap | ||
====================== | ||
|
||
* ... | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/{project_repo}/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Firstname Lastname <email.address@example.org> | ||
* Second Person <second.person@example.org> | ||
|
||
Funders | ||
------- | ||
|
||
The development of this module has been financially supported by: | ||
|
||
* Company 1 name | ||
* Company 2 name | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 KMEE INFORMATICA LTDA | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
'name': 'Geoengine Calendar', | ||
'summary': """ | ||
Geospatial support of calendar""", | ||
'version': '10.0.1.0.0', | ||
'license': 'AGPL-3', | ||
'author': 'KMEE INFORMATICA LTDA,Odoo Community Association (OCA)', | ||
'website': 'https://www.kmee.com.br', | ||
'depends': [ | ||
'calendar', | ||
'base_geoengine', | ||
], | ||
'data': [ | ||
'views/calendar_event.xml', | ||
], | ||
'demo': [ | ||
'demo/calendar_event.xml', | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2018 KMEE INFORMATICA LTDA | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<record model="calendar.event" id="calendar.calendar_event_1"> | ||
<field name='the_point'>POINT(746676.106813609 5865349.7175855)</field> | ||
</record> | ||
|
||
<record model="calendar.event" id="calendar.calendar_event_2"> | ||
<field name='the_point'>POINT(731452.399608894 5875278.22228421)</field> | ||
</record> | ||
|
||
<record model="calendar.event" id="calendar.calendar_event_3"> | ||
<field name='the_point'>POINT(751499.582114456 5874026.56366551)</field> | ||
</record> | ||
|
||
<record model="calendar.event" id="calendar.calendar_event_4"> | ||
<field name='the_point'>POINT(709526.951732539 5873457.99642278)</field> | ||
</record> | ||
|
||
<record model="calendar.event" id="calendar.calendar_event_5"> | ||
<field name='the_point'>POINT(748413.595135886 5867583.63114271)</field> | ||
</record> | ||
|
||
<record model="calendar.event" id="calendar.calendar_event_6"> | ||
<field name='the_point'>POINT(734100.000861888 5873871.68411856)</field> | ||
</record> | ||
|
||
<record model="calendar.event" id="calendar.calendar_event_7"> | ||
<field name='the_point'>POINT(749985.608379851 5876684.76044986)</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import calendar_event |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 KMEE INFORMATICA LTDA | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from odoo.addons.base_geoengine import geo_model | ||
from odoo.addons.base_geoengine import fields as geo_fields | ||
|
||
|
||
class CalendarEvent(geo_model.GeoModel): | ||
|
||
_inherit = 'calendar.event' | ||
|
||
the_point = geo_fields.GeoPoint('Coordinate') |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2018 KMEE INFORMATICA LTDA | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<record model="ir.ui.view" id="calendar_event_form_view"> | ||
<field name="name">calendar.event.form (in geoengine_calendar)</field> | ||
<field name="model">calendar.event</field> | ||
<field name="inherit_id" ref="calendar.view_calendar_event_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr='//notebook' position="inside"> | ||
<page string="Map" name="map"> | ||
<field name="the_point" widget="geo_edit_map"/> | ||
</page> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
|
||
<record model="ir.ui.view" id="calendar_event_geoengine_view"> | ||
<field name="name">calendar.event.geoengine (in geoengine_calendar)</field> | ||
<field name="model">calendar.event</field> | ||
<field eval="16" name="priority"/> | ||
<field name="arch" type="xml"> | ||
<geoengine> | ||
<field name="name" select="1"/> | ||
<field name="state"/> | ||
<field name="attendee_status"/> | ||
</geoengine> | ||
</field> | ||
</record> | ||
|
||
<record id="CALENDAR_EVENT_VECTOR_LAYER_LOCATION" model="geoengine.vector.layer"> | ||
<field name="geo_field_id" ref="geoengine_calendar.field_calendar_event_the_point"/> | ||
<field name="name">Location</field> | ||
<field eval="6" name="sequence"/> | ||
<field name="view_id" ref="calendar_event_geoengine_view"/> | ||
<field name="geo_repr">basic</field> | ||
<field eval="1" name="nb_class"/> | ||
<field name="begin_color">#FF680A</field> | ||
</record> | ||
|
||
<record id="CALENDAR_EVENT_VECTOR_LAYER_ATTENDEE_STATUS" model="geoengine.vector.layer"> | ||
<field name="geo_field_id" ref="geoengine_calendar.field_calendar_event_the_point"/> | ||
<field name="name">Attendee Status</field> | ||
<field name="classification">unique</field> | ||
<field eval="10" name="sequence"/> | ||
<field name="view_id" ref="calendar_event_geoengine_view"/> | ||
<field name="geo_repr">colored</field> | ||
<field eval="1" name="nb_class"/> | ||
<field name="attribute_field_id" ref="calendar.field_calendar_event_attendee_status"/> | ||
<field name="begin_color">#FF680A</field> | ||
</record> | ||
|
||
<record id="CALENDAR_EVENT_VECTOR_LAYER_STATE" model="geoengine.vector.layer"> | ||
<field name="geo_field_id" ref="geoengine_calendar.field_calendar_event_the_point"/> | ||
<field name="name">Status</field> | ||
<field name="classification">unique</field> | ||
<field eval="10" name="sequence"/> | ||
<field name="view_id" ref="calendar_event_geoengine_view"/> | ||
<field name="geo_repr">colored</field> | ||
<field eval="5" name="nb_class"/> | ||
<field name="attribute_field_id" ref="calendar.field_calendar_event_state"/> | ||
<field name="begin_color">#4B69FD</field> | ||
</record> | ||
|
||
<record id="CALENDAR_EVENT_RASTER_LAYER" | ||
model="geoengine.raster.layer"> | ||
<field name="raster_type">osm</field> | ||
<field name="name">Open Street Map</field> | ||
<field name="view_id" ref="calendar_event_geoengine_view"/> | ||
<field eval="0" name="overlay"/> | ||
</record> | ||
|
||
<record id="calendar.action_calendar_event" | ||
model="ir.actions.act_window"> | ||
<field name="view_mode">calendar,tree,form,geoengine</field> | ||
</record> | ||
|
||
</odoo> |