3
0
Fork 0

[IMP] web_calendar_slot_duration: black, isort, prettier

17.0
Christopher Rogos 2024-03-28 13:26:54 +00:00
parent 89d75425c7
commit 5722f48800
12 changed files with 64 additions and 54 deletions

View File

@ -17,20 +17,20 @@ Calendar slot duration
: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/16.0/web_calendar_slot_duration
: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-16-0/web-16-0-web_calendar_slot_duration
: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=16.0
: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.
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**
@ -42,24 +42,28 @@ Configuration
This documentation is for developers.
If you want to configure your calendar view's snap duration, make sure that you
action includes a context similar to this (example is the default value)::
If you want to configure your calendar view's snap duration, make sure
that you 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.
{"calendar_slot_duration": "00:30:00"}
It can be added in actions defined on python or as
``ir.actions.act_window`` records.
Usage
=====
To use this module, you need to install some other addon that uses it, as it
doesn't provide any end-user functionality.
To use this module, you need to install some other addon that uses it,
as it doesn't provide any end-user functionality.
Known issues / Roadmap
======================
* Drop module if/when https://github.com/odoo/odoo/pull/66739 is merged.
- Drop module if/when https://github.com/odoo/odoo/pull/66739 is
merged.
Bug Tracker
===========
@ -67,7 +71,7 @@ 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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`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.
@ -75,20 +79,20 @@ Credits
=======
Authors
~~~~~~~
-------
* Tecnativa
Contributors
~~~~~~~~~~~~
------------
* `Tecnativa <https://www.tecnativa.com>`_:
- `Tecnativa <https://www.tecnativa.com>`__:
* Jairo Llopis
* Stefan Ungureanu
- Jairo Llopis
- Stefan Ungureanu
Maintainers
~~~~~~~~~~~
-----------
This module is maintained by the OCA.
@ -108,6 +112,6 @@ 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/16.0/web_calendar_slot_duration>`_ project on GitHub.
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.

View File

@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

View File

@ -0,0 +1,10 @@
This documentation is for developers.
If you want to configure your calendar view's snap duration, make sure
that you 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.

View File

@ -1,9 +0,0 @@
This documentation is for developers.
If you want to configure your calendar view's snap duration, make sure that you
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.

View File

@ -0,0 +1,3 @@
- [Tecnativa](https://www.tecnativa.com):
- Jairo Llopis
- Stefan Ungureanu

View File

@ -1,4 +0,0 @@
* `Tecnativa <https://www.tecnativa.com>`_:
* Jairo Llopis
* Stefan Ungureanu

View File

@ -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.

View File

@ -1,3 +0,0 @@
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.

View File

@ -0,0 +1,2 @@
- Drop module if/when <https://github.com/odoo/odoo/pull/66739> is
merged.

View File

@ -1 +0,0 @@
* Drop module if/when https://github.com/odoo/odoo/pull/66739 is merged.

View File

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

View File

@ -369,10 +369,10 @@ ul.auto-toc {
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1274b3dddbcd34bf1401a1f208b67af94f47a47121fa32b120acbc37c84a63be
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/16.0/web_calendar_slot_duration"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_calendar_slot_duration"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/web/tree/17.0/web_calendar_slot_duration"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_calendar_slot_duration"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/web&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>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.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
@ -391,23 +391,25 @@ duration and snapping.</p>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<p>This documentation is for developers.</p>
<p>If you want to configure your calendar views snap duration, make sure that you
action includes a context similar to this (example is the default value):</p>
<p>If you want to configure your calendar views snap duration, make sure
that you action includes a context similar to this (example is the
default value):</p>
<pre class="literal-block">
{&quot;calendar_slot_duration&quot;: &quot;00:30:00&quot;}
</pre>
<p>It can be added in actions defined on python or as <tt class="docutils literal">ir.actions.act_window</tt>
records.</p>
<p>It can be added in actions defined on python or as
<tt class="docutils literal">ir.actions.act_window</tt> records.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>To use this module, you need to install some other addon that uses it, as it
doesnt provide any end-user functionality.</p>
<p>To use this module, you need to install some other addon that uses it,
as it doesnt provide any end-user functionality.</p>
</div>
<div class="section" id="known-issues-roadmap">
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
<ul class="simple">
<li>Drop module if/when <a class="reference external" href="https://github.com/odoo/odoo/pull/66739">https://github.com/odoo/odoo/pull/66739</a> is merged.</li>
<li>Drop module if/when <a class="reference external" href="https://github.com/odoo/odoo/pull/66739">https://github.com/odoo/odoo/pull/66739</a> is
merged.</li>
</ul>
</div>
<div class="section" id="bug-tracker">
@ -415,7 +417,7 @@ doesnt provide any end-user functionality.</p>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_calendar_slot_duration%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="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**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
@ -445,7 +447,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/Yajo"><img alt="Yajo" src="https://github.com/Yajo.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/16.0/web_calendar_slot_duration">OCA/web</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/17.0/web_calendar_slot_duration">OCA/web</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>