Friday, July 19, 2024
4 changes
1 change
Resolved issues and error corrections
This update corrects internal code imports used by accounting reports and removes an unused reference. It helps keep the reporting module compatible and easier to maintain without changing day-to-day user workflows.
Original PR description
- `parse_version` should never have been imported from `odoo.tools.misc` because it was never intentionally exported from there (misc just used it internally, and has not done that since 2021) - remove unused `_lt` import - fix imports organisation
3 changes
Resolved issues and error corrections
This fix resolves an issue where new helpdesk tickets displayed "name - #False" in the title bar instead of just "name" when the ticket reference number hadn't been assigned yet. After saving, the ticket reference will display correctly. This improves the user experience by removing confusing placeholder text from the interface.
Original PR description
How to reproduce (on 17.0 onwards): - Helpdesk -> new ticket form - set the name of the ticket (do not save the record) - then, set a partner to a existing partner - The display_name on the top displays 'name - #False' Expeceted behavior: - instead of displaying 'name - #False', it should display 'name' if the ticket_ref is not defined yet. After this commit, the display_name only displays the ticket_ref (#ID) if it exists. Test have been added for this purpose. Task: 3893076
This update improves the user experience by hiding the Field Service section in project forms when it contains no relevant settings. The section now only appears in debug mode when using the basic Field Service module, but displays normally when the Field Service Reports module is installed with additional settings available.
Original PR description
When `industry_fsm` is installed, the form of `project.project` contains a section `Field Service` with only one setting (`is_fsm`). This option is only visible in only visible in debug mode, so the whole section should be displayed only under this conditon. => The group `base.group_no_one` has been added to the section. When `industry_fsm_report` is installed, another setting appears under that section (`worksheet_template_id`), so the section should be displayed. => The group that is added in `industry_fsm` is removed then. task-3916982
A test for knowledge base access controls was using the wrong user type for validation. The test now correctly uses an internal employee user instead of a portal user, ensuring that access control rules are properly tested for the intended user category. This fix ensures the security testing is accurate.
Original PR description
This commit changes the user for the test `:TestWKnowledgeSecurity.test_models_as_user` which should test ACLs for internal users. Initially it used `portal_user`, which is not internal but portal. It is now replaced by `employee`. task-4059967 Forward-Port-Of: odoo/enterprise#66869