[ADD] calendar,lunch,web: weekly recurrent widget

with this commit we adding weekly recurrent widget, currently proeject and
calendar shows boolean for each day vertically but with this widget we displays
week days and its boolean horizontally.

Here widget will display first day as per language's week_start field, also we
adds FieldDependencies on custom widget and consider those FieldDependencies
while processing view node in basic_view.js

We add support of registry to contain owl custom widgets and add support
of rendering owl custom widgets.

Also with this commit we removes fields like sun, mon, tue etc. from view and
instead use "web_weekly_recurrence" custom widget to display boolean for each
week day.

Co-authored-by: Mohammed Shekha <msh@odoo.com>
This commit is contained in:
YOGRAJ TANDEL
2021-03-26 12:25:44 +00:00
committed by Yannick Tivisse
co-authored by Mohammed Shekha
parent 877ef5552b
commit 7da9c296eb
12 changed files with 361 additions and 58 deletions
+9
View File
@@ -2533,6 +2533,15 @@ reference (FieldReference)
- model_field: name of a FieldMany2One('ir.model') containing the model of the records that can be selected.
When this option is set, the select part of the FieldReference isn't displayed.
Widgets
-------
week_days (WeekDays)
This field displays a list of checkboxes for week days, 1 checkbox for each day
and allow the user to select a subset of the choices.
.. code-block:: xml
<widget name="week_days">
Client actions
==============