Daily updates from Odoo
Monday, January 15, 2024
14 changes
11 changes
Enhancements to existing features
The map view now uses Odoo's newer unified data loading method to retrieve partner details instead of a separate older request. This should make map data retrieval more consistent with the rest of the platform and reduce duplicated data-fetching logic.
Original PR description
The goal of this commit is to use the new webRead (unity) API to avoid the searchRead used to fetch partners. We're therefore going to modify the specification given to the webRead in order to request additional information for the partners.
Appointment visibility rules were tightened so internal users only see appointment types and slots they are allowed to access, while appointment users can read all published appointment types. This reduces accidental over-access and makes appointment listings rely on consistent permission checks.
Original PR description
Purpose ======= Improve the appointment types and slots access rules as the internal users had, by default, higher access than the appointment users. Specifications ============== Create an access…
Purpose ======= Improve the appointment types and slots access rules as the internal users had, by default, higher access than the appointment users. Specifications ============== Create an access rule to restrict the internal user access to only have read access on the: - published appointment types - resource based appointment types - user based appointment types, if there is no staff user or if the user is in the staff users. The same logic is applied for the appointment slot. The appointment users now have read access on every published appointment types. Cleaning the fetching of the appointment types by the "_fetch_and_check_private_appointment_types" method to make use of the ACLs. Cleaning the "_prepare_appointments_cards_data" method in website_appointment to avoid filtering the data twice (indeed most of the filtering is already done by the "_fetch_and_check_private_appointment_types" method). In the appointment_hr module, due to the new rule, the staff_user_bxls internal user no longer had read access to the test_apt_type. Setting the 'is_published' to True for the user to have a read access. This generates a few more queries when calling _get_appointment_slots() with this appointment type. Task-3544915 Co-authored-by: amdi-odoo <amdi@odoo.com> Co-authored-by: jeh-odoo <jeh@odoo.com>
Planning views now show only shifts and projects relevant to the active company, reducing cross-company clutter and potential confusion. Material resources are easier to understand because their default role appears beside the material name, and the public wizard has a cleaner resource display without the tooltip.
Original PR description
Before this commit: - tooltip was there for resource in public wizard - in shift template project_id field was company dependent - all shifts and projects were visible for all companies - in progress bar default role was not visible next to material name IMP After this commit: - Removed the tooltip for resource within the wizard. - In the shift template made the 'project_id' field independent of the company - Only shifts and projects with either no associated company or same company are visible within that particular company. - The progress bar will now display the default role for materials next to the material name in muted. task- 3459979
Employees can now request time off even when the related leave has already been paid. This removes an unnecessary restriction because payroll officers will handle any leaves marked to defer during their normal payroll process.
Original PR description
Since the payroll officer will need to resolve all 'to defer' leaves, there is no point anymore to keep the restriction. task-3599267
The shop floor app now makes manufacturing priorities and worker assignments easier to see, and lets users open related manufacturing orders from work orders. This helps production teams quickly identify urgent work, know who is assigned, and navigate more efficiently.
Original PR description
This pr is a back to basics and has several points that are detailed in the task and the commits. odoo: https://github.com/odoo/odoo/pull/145267 task-id: 3624567
Planning dialogs can now show a tailored message when there is no content to display. This helps users understand why no records are available and what the empty result means in the sales planning workflow.
Original PR description
A new prop in the SelectCreateDialog component has been added in the related PR and this commit uses it to be able to add custom noContent message in a dialog in planning taskid:3186636
Odoo Studio now lets users control whether 'View' buttons appear in editable list views. This makes it easier to configure list behavior directly in Studio when records can be edited from the top or bottom of the list.
Original PR description
This commit adds the open_form_view attribute support in the sidebar of the List editor. The option is only visible when edition is enabled on the view (top or bottom). A test has also been added to the list view tests. task-3605574
CodaBox onboarding is simpler, with clearer connection status, guided token handling, and easier access to SODA mapping. Belgian accounting teams also gain automated SODA imports, direct PDF retrieval from CodaBox, safer token access, and clearer error messages.
Original PR description
- Change the status which say by default connected if we try one time to connect - Add Refresh status button - Import PDF from Codabox directly and by pass the creation of the PDF from Odoo - Auto…
- Change the status which say by default connected if we try one time to connect - Add Refresh status button - Import PDF from Codabox directly and by pass the creation of the PDF from Odoo - Auto import of Soda (Cron) - Put account not defined into account 499 - If no soda yet, import all the soda - Put token in read only if we are connected, else editable - Add "copy/paste" button for the Access Token - Access to token only for Admin (new Codabox group) - Add warning if user revoke last token - Add a button to have access to Mapping table of SODA in the Codabox Settings - Add demo data - Rework some error messages - Hide Connect/Revoke button depending on the Status of the connection - Hide Fiduciary VAT field and use the Accounting Representative VAT - Hide Token field to simplify the onboarding, so when the user clicks on Connect: - If it's the first connection, the user will be redirected to Codabox platform to log in - It it's a following one, show the token field and display a notification to explain exactly what the user must do with that field - Codabox -> CodaBox task-id 3609725 Community: https://github.com/odoo/odoo/pull/148844 IAP https://github.com/odoo/iap-apps/pull/733
Mexican electronic invoicing for Point of Sale now follows the updated refund flow where each refund is tied to a single original order. This improves invoice consistency and reduces errors when issuing refunds and global invoices.
Original PR description
In the corresponding community pr we adapt pos such that only items from 1 order can be refunded in any one order. In this commit we adapt the l10n_mx_edi_pos module acordingly. https://github.com/odoo/odoo/pull/125780 Task: 3376828
The Field Service task planning view now shows only the current user when viewing “my tasks” in Gantt mode. This removes unnecessary rows for other users, making scheduling simpler and easier to read.
Original PR description
In the tasks gantt view of the field service app, there is a line for every registered user in the DB, because the _group_expand_user_ids method selects every user in the DB. What we want now is to have a single line for the current user. The _group_expand_user_ids was edited so that only the current user is returned if the tasks gantt view is in FSM mode and that the search mode is "my tasks" only. task-3621032
Appointment availability slots are now automatically updated when eligible staff members or resources change. This avoids blocking configuration changes and helps keep booking options consistent for customers and schedulers.
Original PR description
Before, there was a constraint raising when changing staff_users on an appointment_type if the ones restricted to slots were not in staff_users anymore. Instead of raising, and in order to have a similar behavior for resources, when changing a staff_user or a resource, synchronize the slots to match that user / resource domain. The fields of restricted users / resources fields are made into computed stored fields depending on the appointment values. A test is added to ensure this behavior. Task-3549573
3 changes
Enhancements to existing features
This update enhances the appointment booking interface with multiple usability improvements including better calendar event creation, improved form layouts, and refined access controls. Users will experience a smoother booking process with automatically set event durations, cleaner menus, and improved visual organization across appointment management screens.
Original PR description
Purpose ======= Improve the appointment general UI. Specifications ============ - Automatically set the calendar event duration to the related appointment type duration when creating a calendar event…
Purpose ======= Improve the appointment general UI. Specifications ============ - Automatically set the calendar event duration to the related appointment type duration when creating a calendar event and there's the appointment_type_id in the context. - Improve the gantt booking form view. - Only allow appointment admins to reorder the appointment type in the list and kanban views. - Improve the resource list and form views. - Move the Share Links menu under Reporting. - Change the calendar template to prevent displaying 'OdooBot' as the sender when recieving a calendar event invitation. - Improve the action helper for the Invitations menu and create an action helper for the appointment type questions answers list view. - Change the location placeholder and the avatars_display description in the appointment type form view. - Align the '+X' with the many2many element names at display. - Removing the 'Appointment' tags from the search tags as events generated through a type can already be found otherwise. - Open the gantt form view instead of the gantt planning view when creating an event by clicking on a gantt cell. - Fix the reserved capacity field display in the gantt form view. - Create an access rule to restrict the internal user access to show the open appointment types or the ones where they are staff users, with only read access. Task-3544915
This update implements the required Complemento Comercio Exterior 2.0 standard for Mexican electronic invoicing, effective January 18th. The changes improve precision in foreign currency value handling and update the technical specifications to comply with the latest SAT (Mexican tax authority) requirements. This ensures your Mexican invoices remain compliant with current regulations.
The Open and Rename actions for embedded views in Knowledge articles have been moved from the top of the article to a cog menu. This change improves the article layout by preventing these actions from interfering with the article content and future comment features.
Original PR description
This commit moves the embedded actions `Open` and `Rename` to the cog menu of the embedded views so that it doesn't interfer with either the top of the article or, in later versions, with comments. task-3635780 Forward-Port-Of: odoo/enterprise#53852 Forward-Port-Of: odoo/enterprise#52758