Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase from OCA #12

Merged
merged 139 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
770df44
[IMP] rename module to 'web_tree_dynamic_colored_field'
damdam-s Aug 4, 2015
0bec4a1
delete unused code, move files to standard locations
hbrunn Mar 22, 2016
2ee7e6a
web_tree_dynamic_colored_field v9
hbrunn Nov 8, 2016
b33a0d9
Migration of web_tree_dynamic_colored_field to 10.0
jesusVMayor May 22, 2017
1a822fa
[MIG] web_tree_dynamic_colored_field: Migration to 11.0
Feb 20, 2018
2461590
web_tree_dynamic_colored_field: Parse field options with pyeval
guewen Mar 6, 2018
3922a0e
web_tree_dynamic_colored_field: Assume that color may not start with …
guewen Mar 7, 2018
482bbcb
web_tree_dynamic_colored_field: correct options examples in readme
guewen Mar 7, 2018
a6afb0c
[IMP] web_tree_dynamic_colored_field: Update README.rst (#899)
ljimenezsidoo Mar 28, 2018
866f828
[FIX] Issue #906
Tardo Jul 4, 2018
c4f3c55
Update README because of wrong license
damdam-s Oct 2, 2018
0d0d26d
web_tree_dynamic_colored_field: Migration to 12.0
MiquelRForgeFlow Mar 20, 2019
789aad6
remove pyeval class and fixup
AdriaGForgeFlow Apr 4, 2019
eed7641
[UPD] README.rst
OCA-git-bot May 22, 2019
fef6fa4
OCA Transbot updated translations from Transifex
oca-transbot Jul 4, 2016
240dd5e
[REF] web_tree_dynamic_colored_field: Black python code
guewen Jan 9, 2020
b14ea17
[MIG] web_tree_dynamic_colored_field: Migration to 13.0
guewen Jan 9, 2020
a706cb2
Remove support of dynamic colors on <tree>
guewen Jan 10, 2020
b738633
Run pre-commit and fix js issues after rebase on new config
guewen Feb 4, 2020
b1c4402
run pre-commit with new prettiers
guewen Mar 19, 2020
56e56b9
[UPD] Update web_tree_dynamic_colored_field.pot
oca-travis Mar 19, 2020
a13aca8
[IMP] web_tree_dynamic_colored_field: black, isort, prettier
phuctranfxvn Feb 7, 2021
a9450c4
[MIG] web_tree_dynamic_colored_field: Migration to 14.0
phuctranfxvn Feb 7, 2021
0afaa35
[UPD] Update web_tree_dynamic_colored_field.pot
oca-travis Apr 1, 2021
110d8cd
[IMP] web_tree_dynamic_colored_field : Add bg_color_field option
legalsylvain Jun 9, 2021
c254c20
[IMP] web_tree_dynamic_colored_field: black, isort, prettier
amh-mw Feb 11, 2022
1836beb
[MIG] web_tree_dynamic_colored_field: Migration to 15.0
amh-mw Feb 11, 2022
51eb4f9
[UPD] Update web_tree_dynamic_colored_field.pot
Oct 17, 2022
c826675
[UPD] web_tree_dynamic_colored_field: readme usage section
Tardo Jan 13, 2023
03f388b
[BOT] post-merge updates
OCA-git-bot Feb 20, 2024
8f02ce6
[IMP] web_tree_dynamic_colored_field: pre-commit auto fixes (before v17)
Mar 12, 2024
4f624b8
[ADD] web_favicon
hbrunn Nov 5, 2015
19536a2
[IMP] web_favicon: Nicer icon + README imp + support files
pedrobaeza Apr 7, 2016
78f2d47
[MIG] web_favicon: Migration to 9.0
pedrobaeza Apr 14, 2016
f0fbe02
[MIG] web_favicon: Migrated to 10.0 (#459)
nikiwaibel Nov 5, 2016
a507706
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
0a22a60
[ADD] Group 'Edit Favicon'
Apr 24, 2017
bc4febf
OCA Transbot updated translations from Transifex
oca-transbot Jun 24, 2017
6fc3280
[11.0][MIG] Standard Migration
misern2 Nov 14, 2017
652c9e8
[UPD] Update web_favicon.pot
oca-travis Jun 24, 2018
b8501c7
Translated using Weblate (Portuguese (Brazil))
Aug 3, 2018
cf46a39
Added translation using Weblate (Danish)
hhgabelgaard Sep 1, 2018
9eedb77
[MIG] web_favicon: Migration to 12.0
tarteo Oct 2, 2018
945f8d6
[UPD] Update web_favicon.pot
oca-travis Oct 24, 2018
8b6814e
Update translation files
oca-transbot Nov 26, 2018
b8e598c
[UPD] README.rst
OCA-git-bot Jul 29, 2019
d96ea98
Added translation using Weblate (Portuguese)
pedrocasi Aug 12, 2019
28abc05
Translated using Weblate (Portuguese)
pedrocasi Aug 12, 2019
64b9ba7
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
0db419b
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
4ebbdf7
Translated using Weblate (Portuguese (Brazil))
Sep 2, 2019
e19b361
Added translation using Weblate (Catalan)
CarlesAntoli Feb 11, 2020
54a4aad
Added translation using Weblate (Catalan)
CarlesAntoli Feb 11, 2020
6e7e850
Translated using Weblate (Catalan)
CarlesAntoli Feb 11, 2020
b3dfde2
[IMP] web_favicon: Use relative import
pedrobaeza Apr 23, 2020
0b431bd
[UPD] README.rst
OCA-git-bot Jul 13, 2020
e3dbae1
[UPD] README.rst
OCA-git-bot Jul 14, 2020
9345fc3
Translated using Weblate (Spanish)
claudiagn Feb 17, 2021
026ca13
Added translation using Weblate (Turkish)
aaltinisik Aug 24, 2021
dd45ba8
Translated using Weblate (Turkish)
aaltinisik Aug 24, 2021
ec65ba7
Translated using Weblate (German)
AndreVolksdorf Aug 3, 2022
3e4a7c5
[UPD] README.rst
OCA-git-bot Sep 3, 2023
c0cd006
Update translation files
weblate Oct 9, 2023
7538a6e
[IMP] web_favicon: pre-commit auto fixes
dc-oerp Mar 14, 2024
969a2fa
[ADD] web_tree_many2one_clickable
pedrobaeza Mar 15, 2015
6eac769
[FIX] Allow set web_tree_many2one_clickable.default as True
antespi Jun 24, 2015
b1b5667
support reference fields in many2one_clickable widget
hbrunn Aug 30, 2016
b05e933
[MIG] web_tree_many2one_clickable: Migration to 9.0
antespi Oct 28, 2016
fa7e920
[MIG] web_tree_many2one_clickable: Migrated to 10.0
atchuthan Jan 19, 2017
5c7856d
[MIG] web_tree_many2one_clickable: Migration to 11.0
Feb 20, 2018
dbdd7fc
web_tree_many2one_clickable: Check if the node is a field
guewen Mar 6, 2018
30e785c
[MIG] web_tree_many2one_clickable: Migration to 12.0.
anandkansagra Jan 20, 2019
f67904f
[MIG] web_tree_many2one_clickable: Migration to 12.0
Tardo May 24, 2019
2f23934
[IMP] web_tree_many2one_clickable: Readme - USAGE
Tardo May 27, 2019
58074d3
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
e50e471
[IMP] web_tree_many2one_clickable: black, isort
Daemo00 Nov 17, 2019
de55827
[MIG] web_tree_many2one_clickable: Migration to 13.0
Daemo00 Nov 17, 2019
a39454d
[IMP] pre-commit run after update
Jan 24, 2020
431dfe4
pre-commit update: prettier xml indent
sbidoul Mar 2, 2020
e807111
[MIG] web_tree_many2one_clickable: Migration to 14.0
Kev-Roche Jan 13, 2021
8f16b9d
[MOD] Pass context defined on tree view field
rven Jun 23, 2021
e663a86
[14.0] [FIX] Clicking on a field with context
Shide Feb 21, 2022
76206b6
[MIG] web_tree_many2one_clickable: Migration to 15.0
XanderDeMatteis Jun 17, 2022
564aa51
[IMP] web_tree_many2one_clickable: Fix pre-commit + improve readme
CarlosRoca13 Jan 16, 2023
b878a1a
[MIG] web_tree_many2one_clickable: Migration to 16.0
tarteo Mar 1, 2023
b64e906
Added translation using Weblate (Italian)
mymage Nov 27, 2023
12bd36f
[IMP] web_tree_many2one_clickable: black, isort, prettier
maciej-wichowski Mar 22, 2024
079cacf
[ADD] web_calendar_slot_duration: customizable calendar slots timespan
Feb 24, 2021
b900a6e
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Mar 15, 2021
6829618
Added translation using Weblate (German)
marylla Apr 6, 2021
c879c0d
[MIG] web_calendar_slot_duration: migration to 13.0
Jul 13, 2021
d8d0902
[IMP] web_calendar_slot_duration: black, isort, prettier
victoralmau Jan 5, 2022
f60a641
[MIG] web_calendar_slot_duration: Migration to 14.0
victoralmau Jan 5, 2022
5ee8df8
[UPD] web_calendar_slot_duration : black, isort, prettier
CRogos Jan 5, 2022
08ee2fe
[MIG] web_calendar_slot_duration: Migration to 15.0
Jul 13, 2022
243afcd
[UPD] README.rst
OCA-git-bot Oct 11, 2022
b35f332
[MIG] web_calendar_slot_duration: Migration to 16.0
norlinhenrik Aug 30, 2023
4ea6b63
[FIX] web_calendar_slot_duration: finish migration
chienandalu Oct 31, 2023
0715192
[UPD] Update web_calendar_slot_duration.pot
Oct 31, 2023
b167da8
[FIX] web_calendar_slot_duration: custom event length
chienandalu Nov 2, 2023
d90627f
[BOT] post-merge updates
OCA-git-bot Nov 8, 2023
89d7542
Added translation using Weblate (Italian)
mymage Nov 27, 2023
5722f48
[IMP] web_calendar_slot_duration: black, isort, prettier
CRogos Mar 28, 2024
f9ed948
[UPD] Copier version 1.20
CRogos Mar 28, 2024
162c798
Merge pull request #2785 from c4a8-odoo/17.0-imp-copier
pedrobaeza Mar 28, 2024
5f813d7
[MIG] web_calendar_slot_duration: Migration to 17.0
CRogos Mar 28, 2024
4d88324
Merge PR #2786 into 17.0
OCA-git-bot Apr 2, 2024
225e495
[UPD] Update web_calendar_slot_duration.pot
Apr 2, 2024
53b4b86
[BOT] post-merge updates
OCA-git-bot Apr 2, 2024
906bb81
[MIG] web_tree_dynamic_colored_field: Migration to 17.0
dz0 Mar 14, 2024
c8deae7
Update translation files
weblate Apr 2, 2024
19a9e08
Merge PR #2771 into 17.0
OCA-git-bot Apr 3, 2024
66fb663
[UPD] Update web_tree_dynamic_colored_field.pot
Apr 3, 2024
bc43787
[BOT] post-merge updates
OCA-git-bot Apr 3, 2024
c5f7b0a
[17.0][FIX] web_responsive: disable default file preview
TesaLazarenko Apr 14, 2024
b842cf4
[IMP] web_refresher: Be able to refresh from report views
CarlosRoca13 Apr 9, 2024
8e6354a
Merge PR #2800 into 17.0
OCA-git-bot Apr 18, 2024
9a4efd0
[BOT] post-merge updates
OCA-git-bot Apr 18, 2024
25bb31b
[MIG] web_favicon: Migration to 17.0
dc-oerp Mar 14, 2024
a53d39b
Merge PR #2770 into 17.0
OCA-git-bot Apr 18, 2024
722cce8
[UPD] Update web_favicon.pot
Apr 18, 2024
48fe129
[BOT] post-merge updates
OCA-git-bot Apr 18, 2024
a299793
[REM] Incorrect .deb file
pedrobaeza Apr 18, 2024
f9f0dc8
Added translation using Weblate (Italian)
mymage Apr 19, 2024
3d1435f
Added translation using Weblate (Italian)
mymage Apr 19, 2024
61236c4
Translated using Weblate (Italian)
mymage Apr 19, 2024
6efeafc
Merge PR #2795 into 17.0
OCA-git-bot Apr 19, 2024
8f3c6d5
[BOT] post-merge updates
OCA-git-bot Apr 19, 2024
44dcdcc
[17.0][IMP] Avoid WARNING odoodb_test py.warnings: /odoo/src/odoo/add…
Apr 19, 2024
81ce680
Merge PR #2802 into 17.0
OCA-git-bot Apr 19, 2024
6b92c75
[BOT] post-merge updates
OCA-git-bot Apr 19, 2024
2ce565e
[17.0][MIG] web_tree_many2one_clickable
maciej-wichowski Apr 1, 2024
b8e89d8
Merge PR #2780 into 17.0
OCA-git-bot Apr 22, 2024
ff43270
[UPD] Update web_tree_many2one_clickable.pot
Apr 22, 2024
a480805
[BOT] post-merge updates
OCA-git-bot Apr 22, 2024
e232926
Update translation files
weblate Apr 22, 2024
607fe70
[IMP] web_refresher: Charge t-inherit-mode extension views just after…
CarlosRoca13 Apr 24, 2024
f7fb4a4
Merge PR #2807 into 17.0
OCA-git-bot Apr 24, 2024
e08356e
[BOT] post-merge updates
OCA-git-bot Apr 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.19
_commit: v1.20
_src_path: gh:oca/oca-addons-repo-template
additional_ruff_rules: []
ci: GitHub
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
hooks:
- id: whool-init
- repo: https://github.com/oca/maintainer-tools
rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
Expand Down Expand Up @@ -110,7 +110,7 @@ repos:
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/OCA/pylint-odoo
rev: v8.0.19
rev: v9.0.4
hooks:
- id: pylint_odoo
name: pylint with optional checks
Expand Down
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fix = true
extend-select = [
"B",
"C90",
"E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
]
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[web_environment_ribbon](web_environment_ribbon/) | 17.0.1.0.0 | | Web Environment Ribbon
[web_calendar_slot_duration](web_calendar_slot_duration/) | 17.0.1.0.0 | [![Yajo](https://github.com/Yajo.png?size=30px)](https://github.com/Yajo) | Customizable calendar slot durations
[web_environment_ribbon](web_environment_ribbon/) | 17.0.1.0.1 | | Web Environment Ribbon
[web_favicon](web_favicon/) | 17.0.1.0.0 | | Allows to set a custom shortcut icon (aka favicon)
[web_no_bubble](web_no_bubble/) | 17.0.1.0.0 | | Remove the bubbles from the web interface
[web_refresher](web_refresher/) | 17.0.1.0.0 | | Web Refresher
[web_responsive](web_responsive/) | 17.0.1.0.0 | [![Yajo](https://github.com/Yajo.png?size=30px)](https://github.com/Yajo) [![Tardo](https://github.com/Tardo.png?size=30px)](https://github.com/Tardo) [![SplashS](https://github.com/SplashS.png?size=30px)](https://github.com/SplashS) | Responsive web client, community-supported
[web_refresher](web_refresher/) | 17.0.1.1.0 | | Web Refresher
[web_responsive](web_responsive/) | 17.0.1.0.1 | [![Yajo](https://github.com/Yajo.png?size=30px)](https://github.com/Yajo) [![Tardo](https://github.com/Tardo.png?size=30px)](https://github.com/Tardo) [![SplashS](https://github.com/SplashS.png?size=30px)](https://github.com/SplashS) | Responsive web client, community-supported
[web_tree_dynamic_colored_field](web_tree_dynamic_colored_field/) | 17.0.1.0.0 | | Allows you to dynamically color fields on tree views
[web_tree_many2one_clickable](web_tree_many2one_clickable/) | 17.0.1.0.0 | | Open the linked resource when clicking on their name

[//]: # (end addons)

Expand Down
Binary file removed pandoc-3.1.9-1-amd64.deb
Binary file not shown.
6 changes: 5 additions & 1 deletion setup/_metapackage/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[project]
name = "odoo-addons-oca-web"
version = "17.0.20240119.1"
version = "17.0.20240422.0"
dependencies = [
"odoo-addon-web_calendar_slot_duration>=17.0dev,<17.1dev",
"odoo-addon-web_environment_ribbon>=17.0dev,<17.1dev",
"odoo-addon-web_favicon>=17.0dev,<17.1dev",
"odoo-addon-web_no_bubble>=17.0dev,<17.1dev",
"odoo-addon-web_refresher>=17.0dev,<17.1dev",
"odoo-addon-web_responsive>=17.0dev,<17.1dev",
"odoo-addon-web_tree_dynamic_colored_field>=17.0dev,<17.1dev",
"odoo-addon-web_tree_many2one_clickable>=17.0dev,<17.1dev",
]
classifiers=[
"Programming Language :: Python",
Expand Down
127 changes: 127 additions & 0 deletions web_calendar_slot_duration/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
======================
Calendar slot duration
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2be0b00f67ed141f98a951795ae0ba21a2912b90c42a00ed2ce136cee2def017
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/17.0/web_calendar_slot_duration
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_calendar_slot_duration
: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/web&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the functionality of backend calendars to support
custom slot durations and to allow you to provide more specific UX
regarding event duration and snapping.

**Table of contents**

.. contents::
:local:

Configuration
=============

This documentation is for developers.

If you want to configure your calendar view's snap duration, make sure
that your window action includes a context similar to this (example is
the default value):

::

{"calendar_slot_duration": "00:30:00"}

It can be added in actions defined on python or as
``ir.actions.act_window`` records.

|edit action settings|

|result|

.. |edit action settings| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_calendar_slot_duration/static/description/edit_action.png
.. |result| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_calendar_slot_duration/static/description/calendar_result.png

Usage
=====

To use this module, you need to install some other addon that uses it,
as it doesn't provide any end-user functionality.

As demo data, this module modifies the "Scheduled Actions" calendar to
have slots of 10 minutes as feature demonstration.

Known issues / Roadmap
======================

- Drop module if/when https://github.com/odoo/odoo/pull/66739 is
merged.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/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 <https://github.com/OCA/web/issues/new?body=module:%20web_calendar_slot_duration%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__:

- Jairo Llopis
- Stefan Ungureanu

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-Yajo| image:: https://github.com/Yajo.png?size=40px
:target: https://github.com/Yajo
:alt: Yajo

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Yajo|

This module is part of the `OCA/web <https://github.com/OCA/web/tree/17.0/web_calendar_slot_duration>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
23 changes: 23 additions & 0 deletions web_calendar_slot_duration/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2021 Tecnativa - Jairo Llopis
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
{
"name": "Calendar slot duration",
"summary": "Customizable calendar slot durations",
"version": "17.0.1.0.0",
"development_status": "Production/Stable",
"category": "Extra Tools",
"website": "https://github.com/OCA/web",
"author": "Tecnativa, Odoo Community Association (OCA)",
"maintainers": ["Yajo"],
"license": "LGPL-3",
"application": False,
"installable": True,
"assets": {
"web.assets_backend": [
"web_calendar_slot_duration/static/src/js/calendar_common_renderer.esm.js",
"web_calendar_slot_duration/static/src/js/calendar_model.esm.js",
]
},
"data": ["demo/scheduled_actions.xml"],
"depends": ["web"],
}
8 changes: 8 additions & 0 deletions web_calendar_slot_duration/demo/scheduled_actions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="base.ir_cron_act" model="ir.actions.act_window">
<field
name="context"
>{'search_default_all': 1, "calendar_slot_duration": "00:10:00"}</field>
</record>
</odoo>
Empty file.
Empty file.
Empty file.
13 changes: 13 additions & 0 deletions web_calendar_slot_duration/i18n/web_calendar_slot_duration.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
3 changes: 3 additions & 0 deletions web_calendar_slot_duration/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
14 changes: 14 additions & 0 deletions web_calendar_slot_duration/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
This documentation is for developers.

If you want to configure your calendar view's snap duration, make sure
that your window action includes a context similar to this (example is the
default value):

{"calendar_slot_duration": "00:30:00"}

It can be added in actions defined on python or as
`ir.actions.act_window` records.

![edit action settings](../static/description/edit_action.png)

![result](../static/description/calendar_result.png)
3 changes: 3 additions & 0 deletions web_calendar_slot_duration/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [Tecnativa](https://www.tecnativa.com):
- Jairo Llopis
- Stefan Ungureanu
3 changes: 3 additions & 0 deletions web_calendar_slot_duration/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module extends the functionality of backend calendars to support
custom slot durations and to allow you to provide more specific UX
regarding event duration and snapping.
2 changes: 2 additions & 0 deletions web_calendar_slot_duration/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Drop module if/when <https://github.com/odoo/odoo/pull/66739> is
merged.
4 changes: 4 additions & 0 deletions web_calendar_slot_duration/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To use this module, you need to install some other addon that uses it,
as it doesn't provide any end-user functionality.

As demo data, this module modifies the "Scheduled Actions" calendar to have slots of 10 minutes as feature demonstration.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading