Add oca-web submodule with 68 web modules

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ernad Husremovic 2025-08-30 17:27:15 +02:00
parent af56672c08
commit 53fddf87c8
2469 changed files with 101716 additions and 0 deletions

View file

@ -0,0 +1,30 @@
First, you have to create tile categories.
* Go to "Dashboards > Configuration > Overview Settings > Dashboard Categories"
* Create categories
Odoo menu and action are automatically created in the "Dashboard > Overview" menu
You should refresh your browser to see new menu items.
.. image:: ../static/description/tile_category_form.png
Then you can create tiles.
* Go to "Dashboards > Configuration > Overview Settings > Dashboard Items"
* create a new tile, set a name, a category and a model.
* You can optionally define colors, domain and a specific action to use.
* Setting a user, or a group in "Security" tab will restrict the display of the tile.
.. image:: ../static/description/tile_tile_form.png
You can optionally define a secondary value, for that purpose :
* Select a field, a function to apply.
* You can define a specific format. (``.format()`` python syntax)
.. image:: ../static/description/tile_tile_form_secondary_value.png

View file

@ -0,0 +1,3 @@
* Markus Schneider <markus.schneider at initos.com>
* Sylvain Le Gal (https://twitter.com/legalsylvain)
* Iván Todorovich <ivan.todorovich@gmail.com>

View file

@ -0,0 +1,16 @@
This module extends the web module to add new dashboard overview system.
By default, the tile displays items count of a given model restricted to a given domain.
Optionally, the tile can display the result of a function on a field.
- Function is one of ``sum``, ``avg``, ``min``, ``max`` or ``median``.
- Field must be integer or float.
Tile can be:
- Displayed only for a user.
- Global for all users.
- Restricted to some groups.
*Note: The tile will be hidden if the current user doesn't have access to the given model.*

View file

@ -0,0 +1,14 @@
**Known issues**
* Can not edit color from dashboard
* Original context is ignored.
* Original domain and filter are not restored.
* To preserve a relative date domain, you have to manually edit the tile's domain from "Configuration > User Interface > Dashboard Tile". You can use the same variables available in filters (``uid``, ``context_today()``, ``current_date``, ``relativedelta``).
**Roadmap**
* Add icons.
* Support client side action (like inbox).
* Restore original Domain + Filter when an action is set.
* Posibility to hide the tile based on a field expression.
* Posibility to set the background color based on a field expression.

View file

@ -0,0 +1,9 @@
* Go to "Dashboard > Overview" and select a category
* The tile configured is displayed with the up to date count and average values of the selected domain.
.. image:: ../static/description/tile_tile_kanban.png
* By clicking on the item, you'll navigate to the tree view of the according model.
.. image:: ../static/description/tile_tile_2_tree_view.png