diff --git a/base_ical/README.rst b/base_ical/README.rst new file mode 100644 index 000000000..4ddcf6b1f --- /dev/null +++ b/base_ical/README.rst @@ -0,0 +1,130 @@ +================================ +Readonly publishing of calendars +================================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f98a0b075e11b8bf4075af16bbe8ba8b249d03f4b675874d232c68a897235579 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github + :target: https://github.com/OCA/server-backend/tree/15.0/base_ical + :alt: OCA/server-backend +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_ical + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows administrators to configure iCalendars based on an arbitrary selection on arbitrary models. + +Users can selectively subscribe to them by enabling them in their profile form. + +This is useful for exposing Odoo data to calendaring application like Nextcloud. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, you need to: + +#. Go to Settings/Technical/iCalendars +#. Create a calendar, fill in the model you want to expose and possibly a domain to restrict records. You can use the ``user`` variable to restrict things relative to the user using the calendar +#. A few iCalendar-fields have defaults that should work for any model, you'll have to fill in expressions manually though for the start and end date of the records. + + For example, for model ``calendar.event``, you'd fill in ``record.allday and record.start_date or record.start`` as `DTSTART` and ``record.allday and record.stop_date or record.stop`` as `DTEND`. + + For model ``hr.leave``, you'd write ``(record.request_unit_half or record.request_unit_hours) and record.date_from or record.date_from.date()`` for `DTSTART` and ``(record.request_unit_half or record.request_unit_hours) and record.date_to or (record.date_to.date() + timedelta(days=1))`` for `DTEND` - this is a bit more complex because of the way Odoo handles the begin and end times of leaves, and you'll want the extra day as most clients interpret the end date as non-inclusive. +#. Existing calendars are available for users in the tab `Calendars` of their profile form, where they can enable them to obtain a link they can paste into whatever client they are going to use + +Usage +===== + +To use this module, you need to: + +#. Go to your profile form +#. Click `Enable` on one of the calendars listed in tab `Calendars` +#. Copy the URL to the application you use + +Known issues / Roadmap +====================== + +* support all of https://datatracker.ietf.org/doc/html/rfc5545#section-3.8 +* allow users to define their own calendars + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Hunki Enterprises BV + +Contributors +~~~~~~~~~~~~ + +* Holger Brunn (https://hunki-enterprises.com) + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Company 1 name +* Company 2 name + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +.. |maintainer-hbrunn| image:: https://github.com/hbrunn.png?size=40px + :target: https://github.com/hbrunn + :alt: hbrunn + +Current `maintainer `__: + +|maintainer-hbrunn| + +This module is part of the `OCA/server-backend `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_ical/__init__.py b/base_ical/__init__.py new file mode 100644 index 000000000..f7209b171 --- /dev/null +++ b/base_ical/__init__.py @@ -0,0 +1,2 @@ +from . import models +from . import controllers diff --git a/base_ical/__manifest__.py b/base_ical/__manifest__.py new file mode 100644 index 000000000..cdc04a513 --- /dev/null +++ b/base_ical/__manifest__.py @@ -0,0 +1,30 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + +{ + "name": "Readonly publishing of calendars", + "summary": "Provide (readonly) .ics URLs to calendar-like models", + "version": "15.0.1.0.0", + "development_status": "Alpha", + "category": "Tools", + "website": "https://github.com/OCA/server-backend", + "author": "Hunki Enterprises BV, Odoo Community Association (OCA)", + "maintainers": ["hbrunn"], + "license": "AGPL-3", + "uninstall_hook": "uninstall_hook", + "external_dependencies": { + "python": ["vobject"], + }, + "depends": [ + "web", + ], + "data": [ + "security/base_ical.xml", + "security/ir.model.access.csv", + "views/base_ical.xml", + "views/res_users.xml", + ], + "demo": [ + "demo/base_ical.xml", + ], +} diff --git a/base_ical/controllers/__init__.py b/base_ical/controllers/__init__.py new file mode 100644 index 000000000..12a7e529b --- /dev/null +++ b/base_ical/controllers/__init__.py @@ -0,0 +1 @@ +from . import main diff --git a/base_ical/controllers/main.py b/base_ical/controllers/main.py new file mode 100644 index 000000000..eda14797d --- /dev/null +++ b/base_ical/controllers/main.py @@ -0,0 +1,27 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + + +from odoo import http + + +class MyController(http.Controller): + @http.route( + "/base_ical/", + auth="public", + csrf=False, + methods=["GET"], + type="http", + ) + def get_ical(self, token): + # TODO: respect if-modified-since headers + token = ( + http.request.env["base.ical.token"].sudo().search([("token", "=", token)]) + ) + if not token: + return http.request.not_found() + response = http.request.make_response( + token.ical_id.with_user(token.user_id)._get_ical(), + headers={"content-type": "text/calendar"}, + ) + return response diff --git a/base_ical/demo/base_ical.xml b/base_ical/demo/base_ical.xml new file mode 100644 index 000000000..b1772853e --- /dev/null +++ b/base_ical/demo/base_ical.xml @@ -0,0 +1,12 @@ + + + + + Demo calendar + + str(record.id) + record.create_date + record.write_date + + diff --git a/base_ical/i18n/.empty b/base_ical/i18n/.empty new file mode 100644 index 000000000..e69de29bb diff --git a/base_ical/models/__init__.py b/base_ical/models/__init__.py new file mode 100644 index 000000000..032ff4327 --- /dev/null +++ b/base_ical/models/__init__.py @@ -0,0 +1,3 @@ +from . import res_users +from . import base_ical +from . import base_ical_token diff --git a/base_ical/models/base_ical.py b/base_ical/models/base_ical.py new file mode 100644 index 000000000..330b13bd4 --- /dev/null +++ b/base_ical/models/base_ical.py @@ -0,0 +1,195 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + + +import datetime +from urllib.parse import urlparse, urlunparse + +import pytz +import vobject +from dateutil import relativedelta + +from odoo import api, fields, models +from odoo.tools.safe_eval import safe_eval + + +class BaseIcal(models.Model): + _name = "base.ical" + _description = "Definition of an iCal export" + + active = fields.Boolean(default=True) + name = fields.Char(required=True, translate=True) + model_id = fields.Many2one("ir.model", required=True, ondelete="cascade") + domain = fields.Char( + required=True, default="[]", help="You can use variables `env` and `user` here" + ) + preview = fields.Text(compute="_compute_preview") + expression_dtstamp = fields.Char( + required=True, + vevent_field="dtstamp", + string="DTSTAMP", + help="You can use variables `record` and `user` here", + default="record.write_date", + ) + expression_uid = fields.Char( + required=True, + vevent_field="uid", + string="UID", + help="You can use variables `record` and `user` here", + ) + expression_dtstart = fields.Char( + required=True, + vevent_field="dtstart", + string="DTSTART", + help="You can use variables `record` and `user` here", + ) + expression_dtend = fields.Char( + required=True, + vevent_field="dtend", + string="DTEND", + help="You can use variables `record` and `user` here", + ) + expression_summary = fields.Char( + required=True, + vevent_field="summary", + string="SUMMARY", + help="You can use variables `record` and `user` here", + default="record.display_name", + ) + user_url = fields.Char(compute="_compute_user_fields", string="URL") + user_active = fields.Boolean(compute="_compute_user_fields") + + def _valid_field_parameter(self, field, name): + return super()._valid_field_parameter(field, name) or name == "vevent_field" + + @api.depends( + "model_id", + "domain", + "expression_dtstamp", + "expression_uid", + "expression_dtstart", + "expression_dtend", + "expression_summary", + ) + def _compute_preview(self): + for this in self: + this.preview = this._get_ical() + + def _compute_user_fields(self): + base_url = self.env["ir.config_parameter"].sudo().get_param("web.base.url") + for this in self: + token = this._get_user_tokens()[:1] + vals = {"user_url": False, "user_active": False} + if token: + vals.update( + user_url=urlunparse( + urlparse(base_url)._replace(path="/base_ical/%s" % token.token) + ), + user_active=token.active, + ) + this.update(vals) + + @api.onchange("model_id") + def _onchange_model_id(self): + for field_name, field in self._fields.items(): + if hasattr(field, "vevent_field"): + self[field_name] = False + self.update( + self.default_get(["domain", "expression_dtstamp", "expression_summary"]) + ) + base_url = self.env["ir.config_parameter"].sudo().get_param("web.base.url") + self.expression_uid = "'%%s-%s@%s' %% record.id" % ( + self.env.cr.dbname, + urlparse(base_url).hostname, + ) + + @api.constrains( + "domain", + "expression_dtstamp", + "expression_uid", + "expression_dtstart", + "expression_dtend", + "expression_summary", + ) + def _check_domain(self): + for this in self: + this._get_ical() + + def _get_user_tokens(self): + return ( + self.env["base.ical.token"] + .with_context(active_test=False) + .search( + [ + ("user_id", "=", self.env.user.id), + ("ical_id", "in", self.ids), + ] + ) + ) + + def _get_eval_expression_context(self, record): + """Return the evaluation context for expression evaluation""" + return { + "record": record, + "user": self.env.user, + "timedelta": datetime.timedelta, + "relativedelta": relativedelta.relativedelta, + } + + def _get_eval_domain_context(self): + """Return the evaluation context for domain evaluation""" + return { + "user": self.env.user, + "env": self.env, + } + + def _get_events(self): + """Return events based on model_id and domain""" + self.ensure_one() + return self.env[self.model_id.model].search( + safe_eval(self.domain, self._get_eval_domain_context()) + ) + + def _get_ical(self): + """Return the vcalendar as text""" + if not all( + self[field_name] + for field_name, field in self._fields.items() + if hasattr(field, "vevent_field") and field.required + ): + return False + calendar = vobject.iCalendar() + for record in self._get_events(): + event = calendar.add("vevent") + for field_name, field in self._fields.items(): + if not hasattr(field, "vevent_field"): + continue + value = safe_eval( + self[field_name], self._get_eval_expression_context(record) + ) + event.add(field.vevent_field).value = self._format_ical_value( + field, value + ) + return calendar.serialize() + + def _format_ical_value(self, field, value): + """Add timezone to datetime values""" + if isinstance(value, datetime.datetime): + return pytz.utc.localize(value).astimezone(pytz.timezone(self.env.user.tz)) + return value + + def action_enable(self): + """Create or activate current user's token""" + token = self._get_user_tokens()[:1] + if token and not token.active: + token.active = True + elif not token: + self.env["base.ical.token"].create( + {"ical_id": self.id, "user_id": self.env.user.id} + ) + + def action_disable(self): + """Deactivate current user's token""" + token = self._get_user_tokens()[:1] + if token and token.active: + token.active = False diff --git a/base_ical/models/base_ical_token.py b/base_ical/models/base_ical_token.py new file mode 100644 index 000000000..3e52d75ec --- /dev/null +++ b/base_ical/models/base_ical_token.py @@ -0,0 +1,22 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + + +import secrets + +from odoo import fields, models + + +class BaseIcalToken(models.Model): + _name = "base.ical.token" + _description = "User token of an iCal export" + _rec_name = "ical_id" + + active = fields.Boolean(default=True) + ical_id = fields.Many2one("base.ical", required=True, ondelete="cascade") + user_id = fields.Many2one("res.users", required=True, ondelete="cascade") + token = fields.Char(required=True, default=lambda self: secrets.token_urlsafe()) + + _sql_constraints = [ + ("token_uniqe", "unique(token)", "The token must be unique"), + ] diff --git a/base_ical/models/res_users.py b/base_ical/models/res_users.py new file mode 100644 index 000000000..5dd4462ae --- /dev/null +++ b/base_ical/models/res_users.py @@ -0,0 +1,15 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + + +from odoo import fields, models + + +class ResUsers(models.Model): + _inherit = "res.users" + + ical_ids = fields.One2many("base.ical", compute="_compute_ical_ids") + + def _compute_ical_ids(self): + for this in self: + this.ical_ids = self.env["base.ical"].search([]) diff --git a/base_ical/readme/CONFIGURE.rst b/base_ical/readme/CONFIGURE.rst new file mode 100644 index 000000000..df49cd663 --- /dev/null +++ b/base_ical/readme/CONFIGURE.rst @@ -0,0 +1,10 @@ +To configure this module, you need to: + +#. Go to Settings/Technical/iCalendars +#. Create a calendar, fill in the model you want to expose and possibly a domain to restrict records. You can use the ``user`` variable to restrict things relative to the user using the calendar +#. A few iCalendar-fields have defaults that should work for any model, you'll have to fill in expressions manually though for the start and end date of the records. + + For example, for model ``calendar.event``, you'd fill in ``record.allday and record.start_date or record.start`` as `DTSTART` and ``record.allday and record.stop_date or record.stop`` as `DTEND`. + + For model ``hr.leave``, you'd write ``(record.request_unit_half or record.request_unit_hours) and record.date_from or record.date_from.date()`` for `DTSTART` and ``(record.request_unit_half or record.request_unit_hours) and record.date_to or (record.date_to.date() + timedelta(days=1))`` for `DTEND` - this is a bit more complex because of the way Odoo handles the begin and end times of leaves, and you'll want the extra day as most clients interpret the end date as non-inclusive. +#. Existing calendars are available for users in the tab `Calendars` of their profile form, where they can enable them to obtain a link they can paste into whatever client they are going to use diff --git a/base_ical/readme/CONTRIBUTORS.rst b/base_ical/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..33b6eb2c3 --- /dev/null +++ b/base_ical/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Holger Brunn (https://hunki-enterprises.com) diff --git a/base_ical/readme/CREDITS.rst b/base_ical/readme/CREDITS.rst new file mode 100644 index 000000000..03f965bd4 --- /dev/null +++ b/base_ical/readme/CREDITS.rst @@ -0,0 +1,4 @@ +The development of this module has been financially supported by: + +* Company 1 name +* Company 2 name diff --git a/base_ical/readme/DESCRIPTION.rst b/base_ical/readme/DESCRIPTION.rst new file mode 100644 index 000000000..993672c87 --- /dev/null +++ b/base_ical/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +This module allows administrators to configure iCalendars based on an arbitrary selection on arbitrary models. + +Users can selectively subscribe to them by enabling them in their profile form. + +This is useful for exposing Odoo data to calendaring application like Nextcloud. diff --git a/base_ical/readme/ROADMAP.rst b/base_ical/readme/ROADMAP.rst new file mode 100644 index 000000000..9b15aa746 --- /dev/null +++ b/base_ical/readme/ROADMAP.rst @@ -0,0 +1,2 @@ +* support all of https://datatracker.ietf.org/doc/html/rfc5545#section-3.8 +* allow users to define their own calendars diff --git a/base_ical/readme/USAGE.rst b/base_ical/readme/USAGE.rst new file mode 100644 index 000000000..e2222fa7f --- /dev/null +++ b/base_ical/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: + +#. Go to your profile form +#. Click `Enable` on one of the calendars listed in tab `Calendars` +#. Copy the URL to the application you use diff --git a/base_ical/security/base_ical.xml b/base_ical/security/base_ical.xml new file mode 100644 index 000000000..958d05039 --- /dev/null +++ b/base_ical/security/base_ical.xml @@ -0,0 +1,25 @@ + + + + + Ical export tokens + + + + + + + [('user_id', '=', user.id)] + + + Ical export tokens + + + + + + + [(1, '=', 1)] + + diff --git a/base_ical/security/ir.model.access.csv b/base_ical/security/ir.model.access.csv new file mode 100644 index 000000000..fb4e087f0 --- /dev/null +++ b/base_ical/security/ir.model.access.csv @@ -0,0 +1,4 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_base_ical,access_base_ical,model_base_ical,base.group_user,1,0,0,0 +modify_base_ical,modify_base_ical,model_base_ical,base.group_system,1,1,1,1 +modify_base_ical_token,modify_base_ical_token,model_base_ical_token,base.group_user,1,1,1,1 diff --git a/base_ical/static/description/icon.png b/base_ical/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/base_ical/static/description/icon.png differ diff --git a/base_ical/static/description/index.html b/base_ical/static/description/index.html new file mode 100644 index 000000000..13248c370 --- /dev/null +++ b/base_ical/static/description/index.html @@ -0,0 +1,475 @@ + + + + + + +Readonly publishing of calendars + + + +
+

Readonly publishing of calendars

+ + +

Alpha License: AGPL-3 OCA/server-backend Translate me on Weblate Try me on Runboat

+

This module allows administrators to configure iCalendars based on an arbitrary selection on arbitrary models.

+

Users can selectively subscribe to them by enabling them in their profile form.

+

This is useful for exposing Odoo data to calendaring application like Nextcloud.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to:

+
    +
  1. Go to Settings/Technical/iCalendars

    +
  2. +
  3. Create a calendar, fill in the model you want to expose and possibly a domain to restrict records. You can use the user variable to restrict things relative to the user using the calendar

    +
  4. +
  5. A few iCalendar-fields have defaults that should work for any model, you’ll have to fill in expressions manually though for the start and end date of the records.

    +

    For example, for model calendar.event, you’d fill in record.allday and record.start_date or record.start as DTSTART and record.allday and record.stop_date or record.stop as DTEND.

    +

    For model hr.leave, you’d write (record.request_unit_half or record.request_unit_hours) and record.date_from or record.date_from.date() for DTSTART and (record.request_unit_half or record.request_unit_hours) and record.date_to or (record.date_to.date() + timedelta(days=1)) for DTEND - this is a bit more complex because of the way Odoo handles the begin and end times of leaves, and you’ll want the extra day as most clients interpret the end date as non-inclusive.

    +
  6. +
  7. Existing calendars are available for users in the tab Calendars of their profile form, where they can enable them to obtain a link they can paste into whatever client they are going to use

    +
  8. +
+
+
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to your profile form
  2. +
  3. Click Enable on one of the calendars listed in tab Calendars
  4. +
  5. Copy the URL to the application you use
  6. +
+
+
+

Known issues / Roadmap

+ +
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Hunki Enterprises BV
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • Company 1 name
  • +
  • Company 2 name
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

hbrunn

+

This module is part of the OCA/server-backend project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/base_ical/tests/__init__.py b/base_ical/tests/__init__.py new file mode 100644 index 000000000..a6bda60e8 --- /dev/null +++ b/base_ical/tests/__init__.py @@ -0,0 +1 @@ +from . import test_base_ical diff --git a/base_ical/tests/test_base_ical.py b/base_ical/tests/test_base_ical.py new file mode 100644 index 000000000..13c7cdff5 --- /dev/null +++ b/base_ical/tests/test_base_ical.py @@ -0,0 +1,43 @@ +# Copyright 2023 Hunki Enterprises BV +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) + + +from odoo.tests.common import Form, TransactionCase + + +class TestBaseIcal(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.calendar = cls.env.ref("base_ical.demo_calendar") + + def test_profile(self): + """Test url generation""" + user = self.env.ref("base.user_demo") + token_domain = [ + ("user_id", "=", user.id), + ("ical_id", "=", self.calendar.id), + ] + token_search = ( + self.env["base.ical.token"].with_context(active_test=False).search + ) + self.assertFalse(token_search(token_domain)) + self.assertFalse(self.calendar.with_user(user).user_active) + self.calendar.with_user(user).action_enable() + token = token_search(token_domain) + self.assertTrue(token.active) + self.calendar.invalidate_cache() + self.assertTrue(self.calendar.with_user(user).user_active) + self.calendar.with_user(user).action_disable() + self.calendar.invalidate_cache() + self.assertFalse(self.calendar.with_user(user).user_active) + + def test_config(self): + """Configure calendar""" + with Form(self.calendar) as calendar_form: + calendar_form.model_id = self.env.ref("base.model_res_partner") + self.assertFalse(calendar_form.expression_dtstart) + self.assertFalse(calendar_form.preview) + calendar_form.expression_dtstart = "record.create_date" + calendar_form.expression_dtend = "record.write_date" + self.assertTrue(calendar_form.preview) diff --git a/base_ical/views/base_ical.xml b/base_ical/views/base_ical.xml new file mode 100644 index 000000000..af3ad1255 --- /dev/null +++ b/base_ical/views/base_ical.xml @@ -0,0 +1,50 @@ + + + + + base.ical + +
+ + +
+
+
+ + base.ical + + + + + + + + + + iCalendars + ir.actions.act_window + base.ical + tree,form + + +
diff --git a/base_ical/views/res_users.xml b/base_ical/views/res_users.xml new file mode 100644 index 000000000..6806dd462 --- /dev/null +++ b/base_ical/views/res_users.xml @@ -0,0 +1,38 @@ + + + + + res.users + + + + + + +