mirror of https://github.com/OCA/web.git
[IMP] web_calendar_slot_duration: black, isort, prettier
parent
89d75425c7
commit
5722f48800
|
@ -17,20 +17,20 @@ Calendar slot duration
|
||||||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
|
||||||
:alt: License: LGPL-3
|
:alt: License: LGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
|
.. |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
|
:alt: OCA/web
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |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
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
.. |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
|
:alt: Try me on Runboat
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
|
|
||||||
This module extends the functionality of backend calendars to support custom
|
This module extends the functionality of backend calendars to support
|
||||||
slot durations and to allow you to provide more specific UX regarding event
|
custom slot durations and to allow you to provide more specific UX
|
||||||
duration and snapping.
|
regarding event duration and snapping.
|
||||||
|
|
||||||
**Table of contents**
|
**Table of contents**
|
||||||
|
|
||||||
|
@ -42,24 +42,28 @@ Configuration
|
||||||
|
|
||||||
This documentation is for developers.
|
This documentation is for developers.
|
||||||
|
|
||||||
If you want to configure your calendar view's snap duration, make sure that you
|
If you want to configure your calendar view's snap duration, make sure
|
||||||
action includes a context similar to this (example is the default value)::
|
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``
|
{"calendar_slot_duration": "00:30:00"}
|
||||||
records.
|
|
||||||
|
It can be added in actions defined on python or as
|
||||||
|
``ir.actions.act_window`` records.
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
=====
|
=====
|
||||||
|
|
||||||
To use this module, you need to install some other addon that uses it, as it
|
To use this module, you need to install some other addon that uses it,
|
||||||
doesn't provide any end-user functionality.
|
as it doesn't provide any end-user functionality.
|
||||||
|
|
||||||
Known issues / Roadmap
|
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
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
@ -67,7 +71,7 @@ Bug Tracker
|
||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
|
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.
|
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
|
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.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
|
@ -75,20 +79,20 @@ Credits
|
||||||
=======
|
=======
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
~~~~~~~
|
-------
|
||||||
|
|
||||||
* Tecnativa
|
* Tecnativa
|
||||||
|
|
||||||
Contributors
|
Contributors
|
||||||
~~~~~~~~~~~~
|
------------
|
||||||
|
|
||||||
* `Tecnativa <https://www.tecnativa.com>`_:
|
- `Tecnativa <https://www.tecnativa.com>`__:
|
||||||
|
|
||||||
* Jairo Llopis
|
- Jairo Llopis
|
||||||
* Stefan Ungureanu
|
- Stefan Ungureanu
|
||||||
|
|
||||||
Maintainers
|
Maintainers
|
||||||
~~~~~~~~~~~
|
-----------
|
||||||
|
|
||||||
This module is maintained by the OCA.
|
This module is maintained by the OCA.
|
||||||
|
|
||||||
|
@ -108,6 +112,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||||
|
|
||||||
|maintainer-Yajo|
|
|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.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[build-system]
|
||||||
|
requires = ["whool"]
|
||||||
|
build-backend = "whool.buildapi"
|
|
@ -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.
|
|
@ -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.
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
- [Tecnativa](https://www.tecnativa.com):
|
||||||
|
- Jairo Llopis
|
||||||
|
- Stefan Ungureanu
|
|
@ -1,4 +0,0 @@
|
||||||
* `Tecnativa <https://www.tecnativa.com>`_:
|
|
||||||
|
|
||||||
* Jairo Llopis
|
|
||||||
* Stefan Ungureanu
|
|
|
@ -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.
|
|
@ -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.
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
- Drop module if/when <https://github.com/odoo/odoo/pull/66739> is
|
||||||
|
merged.
|
|
@ -1 +0,0 @@
|
||||||
* Drop module if/when https://github.com/odoo/odoo/pull/66739 is merged.
|
|
|
@ -1,2 +1,2 @@
|
||||||
To use this module, you need to install some other addon that uses it, as it
|
To use this module, you need to install some other addon that uses it,
|
||||||
doesn't provide any end-user functionality.
|
as it doesn't provide any end-user functionality.
|
|
@ -369,10 +369,10 @@ ul.auto-toc {
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
!! source digest: sha256:1274b3dddbcd34bf1401a1f208b67af94f47a47121fa32b120acbc37c84a63be
|
!! 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&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></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&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
|
<p>This module extends the functionality of backend calendars to support
|
||||||
slot durations and to allow you to provide more specific UX regarding event
|
custom slot durations and to allow you to provide more specific UX
|
||||||
duration and snapping.</p>
|
regarding event duration and snapping.</p>
|
||||||
<p><strong>Table of contents</strong></p>
|
<p><strong>Table of contents</strong></p>
|
||||||
<div class="contents local topic" id="contents">
|
<div class="contents local topic" id="contents">
|
||||||
<ul class="simple">
|
<ul class="simple">
|
||||||
|
@ -391,23 +391,25 @@ duration and snapping.</p>
|
||||||
<div class="section" id="configuration">
|
<div class="section" id="configuration">
|
||||||
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
|
||||||
<p>This documentation is for developers.</p>
|
<p>This documentation is for developers.</p>
|
||||||
<p>If you want to configure your calendar view’s snap duration, make sure that you
|
<p>If you want to configure your calendar view’s snap duration, make sure
|
||||||
action includes a context similar to this (example is the default value):</p>
|
that you action includes a context similar to this (example is the
|
||||||
|
default value):</p>
|
||||||
<pre class="literal-block">
|
<pre class="literal-block">
|
||||||
{"calendar_slot_duration": "00:30:00"}
|
{"calendar_slot_duration": "00:30:00"}
|
||||||
</pre>
|
</pre>
|
||||||
<p>It can be added in actions defined on python or as <tt class="docutils literal">ir.actions.act_window</tt>
|
<p>It can be added in actions defined on python or as
|
||||||
records.</p>
|
<tt class="docutils literal">ir.actions.act_window</tt> records.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="usage">
|
<div class="section" id="usage">
|
||||||
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
|
<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
|
<p>To use this module, you need to install some other addon that uses it,
|
||||||
doesn’t provide any end-user functionality.</p>
|
as it doesn’t provide any end-user functionality.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="known-issues-roadmap">
|
<div class="section" id="known-issues-roadmap">
|
||||||
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
|
<h1><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h1>
|
||||||
<ul class="simple">
|
<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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="bug-tracker">
|
<div class="section" id="bug-tracker">
|
||||||
|
@ -415,7 +417,7 @@ doesn’t 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>.
|
<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.
|
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
|
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>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<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>
|
promote its widespread use.</p>
|
||||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</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><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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue