Monday, October 16, 2023
3 changes · master
New functionality added to Odoo
This update adds a visual hierarchy view so companies can browse employee reporting lines and department structures as organization charts. It also improves related HR presence indicators and view controls to make the new charts clearer and easier to use.
Original PR description
Purpose ======= The goal is to be able to have a hierarchy view to see the organisation of a company, that is, to have organisation chart for `hr.employee` model. To do that, a new view will be…
Purpose
=======
The goal is to be able to have a hierarchy view to see the organisation of a company, that is, to have organisation chart for `hr.employee` model.
To do that, a new view will be introduced in `web_hierarchy` module, called `Hierarchy` view and it will first be used in `hr_org_chart` module for `hr.employee`, `hr.employee.public` and `hr.department` models.
Implementation details
----------------------
- A new python method will be introduced in the models when `web_hierarchy` module is
installed. That method, called `hierarchy_read`, is created to fetch the data for the
hierarchy view when the view will be loaded.
- The definition of hierarchy view is inspired to the definition of the kanban,
that is, a template called `hierarchy-box` has to be defined in the arch to draw the card
displayed in the node of the hierarchy view.
- Some attributes can be defined on the `hierarchy` tag:
- `parent_field` (default='parent_id') contains the parent field name
to use to fetch the parent record and to be able to fetch the hierarchy.
- `child_field` (optional attribute) contains the child field name
to use to find the child records (it is in fact the one2many field).
If that field is defined then some queries can be avoided since we
directly fetch the children when a read/search_read is done.
- `icon` (default='fa-share-alt o_hierarchy_icon') icon displayed inside the
`Unfold` button (to show the child nodes) in hierarchy node.
- `draggable` (default=False) True to allow the user to drag and drop a
node (= record) into a row or another node to update its parent node.
task-3376776Odoo's web editor now includes basic AI-assisted content generation, helping users create, translate, or reformulate text while writing. This adds a dialog, loading and error feedback, and a connection to Odoo's language generation service, making content creation faster and easier for business users.
Original PR description
When you're writing something in Odoo you might want to translate/reformulate/generate something. Using a LLM, we could easily do that. This commit implement the bare minimum to generate content - a Dialog - a loading "snippet" - a rpc to Odoo Language Generator Please find the PR of the IAP part here : https://github.com/odoo/iap-apps/pull/684 task-3383324
Enhancements to existing features
Users can now create new Gantt records by selecting one or more time slots directly on the schedule instead of using cell buttons. This makes planning workflows faster and more intuitive, with the Plan dialog shown by default when available and the standard Create dialog used otherwise.
Original PR description
This commit removes the gantt cell buttons and replace them by allowing the user to select one or multiple cells to create a new record. The opened dialog will by default be the Plan dialog but will be replaced with the Create dialog it it isn't available. task-2704512