Tuesday, January 21, 2025
5 changes · master
Resolved issues and error corrections
This fixes the packaging process for IoT Box Docker images so their required dependency list is not accidentally replaced by the main Odoo dependency list. It helps ensure IoT Box images are built with the correct components, reducing build errors or incorrect runtime behavior.
Original PR description
When building the Docker image for iot box, the iot requirements are copied to the docker build directory. Unfortunately, the regular Odoo requirements are also copied at the same place with the same name and thus overwrite the iot requirements. With this commit, we ensure that the names are different.
This fixes an internal test so it no longer depends on optional demo data being installed. It helps keep validation reliable across different setup environments without changing customer-facing behavior.
Original PR description
The demo user is only accessible with demo data, which may not work if demo data is not used. Followup of https://github.com/odoo/odoo/pull/179915 Runbot-111710
This update corrects a misleading internal name in the sales PDF quote builder, reflecting that it handles both quote documents and product documents. The change improves clarity for future maintenance without changing how users create or manage sales quotes.
Original PR description
This name was at best misleading, as we are also dealing with product documents. See also: https://github.com/odoo/upgrade/pull/7099
The Appointments website block now keeps any custom destination set for its “See all” link after the page is saved. This prevents visitors from being sent back to the default appointments page when the website editor intended the link to point elsewhere.
Original PR description
Steps to reproduce: - Install the appointments module. - Go to the homepage. - Enter edit mode. - Drag and drop a "Appointments" block onto the page. - Click on the "See all" link. - Edit the link (e.g., change "/appointment" to "/contactus"). - Save the page. - Click on the "See all" link. - Bug: You are redirected to the "/appointment" page instead of the "/contactus" page as expected. The bug occurs since commit [1], where the "See all" link was added to "Dynamic" snippets. Each time a "Dynamic" snippet is rendered during a page load, the href of the "See all" link is reset to the main module page. While this behavior is useful when the snippet is first rendered after being dropped onto the page, it is problematic afterward. Once the user has edited the link with a different href, it should not be reset on every page load. [1]: bbcff74 opw-4418048
This fix prevents Odoo Studio from triggering background updates when a user edits a view for a model where they do not have permission to create records. This avoids unnecessary warning messages and makes Studio behave more smoothly for users with restricted access.
Original PR description
This commit adapts studio for commit odoo/odoo@74c5cd56a0539edab6a61efa517ca6a08c08d915 which prevents doing an onchange if the user doesn't have create access on the model. Before the present commit, there were warnings in some cases because we tried just that: opening studio to edit a form view without a record, on a model on which there was no create access rights. After the present commit, we prevent such cases using the view's activeActions. runbot-error-112212