Monday, April 1, 2024
8 changes · master
Miscellaneous changes
In 2024, Luxembourg added two new fields: 769 and 770. In addition to adding it to our reports, it is also necessary to add these in the PDF export file. Part of: task-3814151 See also: https://github.com/odoo/odoo/pull/158016 Forward-Port-Of: odoo/enterprise#59842 Forward-Port-Of: odoo/enterprise#58837
Original PR description
In 2024, Luxembourg added two new fields: 769 and 770. In addition to adding it to our reports, it is also necessary to add these in the PDF export file. Part of: task-3814151 See also: https://github.com/odoo/odoo/pull/158016 Forward-Port-Of: odoo/enterprise#59842 Forward-Port-Of: odoo/enterprise#58837
### Steps to reproduce: - Install **field service** app. - Go to **field service**, and convert the view to **Calendar**. - Click on a task and try to drag it. You **_can't_** drag and drop a task. ### Investigation: - the `date_start` option is `planned_date_start` https://github.com/odoo/enterprise/blob/dab59cb6dea28f13b6b984b19d844fc9ad6f2006/industry_fsm/views/fsm_views.xml#L91 - which is a **computed -readonly-** field https://github.com/odoo/enterprise/blob/a29e55f7ac02a0c2b34c9714
Original PR description
### Steps to reproduce: - Install **field service** app. - Go to **field service**, and convert the view to **Calendar**. - Click on a task and try to drag it. You **_can't_** drag and drop a task.…
### Steps to reproduce: - Install **field service** app. - Go to **field service**, and convert the view to **Calendar**. - Click on a task and try to drag it. You **_can't_** drag and drop a task. ### Investigation: - the `date_start` option is `planned_date_start` https://github.com/odoo/enterprise/blob/dab59cb6dea28f13b6b984b19d844fc9ad6f2006/industry_fsm/views/fsm_views.xml#L91 - which is a **computed -readonly-** field https://github.com/odoo/enterprise/blob/a29e55f7ac02a0c2b34c9714397c5a1322785833/project_enterprise/models/project_task.py#L31 - That's why, we can't drag the task. - The `planned_date_start` field was added because the `start_date_begin` field was **optional** and so to be able to view tasks with only a deadline a no start date, the field `planned_date_start` was added with the compromise of not being able to drag the task - The `planned_date_begin ` field is now **required** tho. and so no need to make such compromise as an fsm task will always have a start date `start_date_begin` opw-3750403 Forward-Port-Of: odoo/enterprise#59256 Forward-Port-Of: odoo/enterprise#58316
Adding the current list context to the loadAction call in case some element are needed For exemple the active_id was needed in the project task list view Task-3815748 Forward-Port-Of: odoo/enterprise#58929
Original PR description
Adding the current list context to the loadAction call in case some element are needed For exemple the active_id was needed in the project task list view Task-3815748 Forward-Port-Of: odoo/enterprise#58929
Following odoo/odoo#142007 - Fix an issue introduced by this change; - Remove a button now useless. Forward-Port-Of: odoo/enterprise#59205
Original PR description
Following odoo/odoo#142007 - Fix an issue introduced by this change; - Remove a button now useless. Forward-Port-Of: odoo/enterprise#59205
**Bug 1:** - Select a document and add Marc Demo as a follower - Use the 'View Document' link in the notification email to access the document. - The form view still has a button named 'Archive' instead of 'Move to trash'. However, the 'Archive' button moves the document to trash. This PR changes the string of button from 'Archive' to 'Move to trash' and the title of web ribbon from 'Archived' to 'Moved to trash' respectively. **Bug 2:** - Open the documens module. - Go to Config
Original PR description
**Bug 1:** - Select a document and add Marc Demo as a follower - Use the 'View Document' link in the notification email to access the document. - The form view still has a button named 'Archive'…
**Bug 1:** - Select a document and add Marc Demo as a follower - Use the 'View Document' link in the notification email to access the document. - The form view still has a button named 'Archive' instead of 'Move to trash'. However, the 'Archive' button moves the document to trash. This PR changes the string of button from 'Archive' to 'Move to trash' and the title of web ribbon from 'Archived' to 'Moved to trash' respectively. **Bug 2:** - Open the documens module. - Go to Configuration -> Workspaces - Click on the search view dropdown - The filters section still has a filter named 'Archived Workspace' instead of 'Moved to trash' even though it displays trashed workspaces. This PR changes the string of filter from 'Archived Workspace' to 'Moved to trash'. Task: [3787404](https://www.odoo.com/web#id=3787404&cids=2&menu_id=4720&action=333&active_id=10888&model=project.task&view_type=form) Forward-Port-Of: odoo/enterprise#59768 Forward-Port-Of: odoo/enterprise#58248
Steps to reproduce: - Install `documents` module - Ensure you have access to 2 companies (Co. 1 and Co. 2) - Enable both companies - Create a Folder A in Co. 1 - Create a Folder B in Co. 2 with Folder A as parent - Create a Folder C in Co. 1 with Folder B as parent - Put a file in each folder - Enable only Co. 1 - On left panel, select Folder A and unfold until Folder C appears Issue: The folder B is visible. Cause: When retrieving the folders to disp
Original PR description
Steps to reproduce: - Install `documents` module - Ensure you have access to 2 companies (Co. 1 and Co. 2) - Enable both companies - Create a Folder A in Co. 1 - Create a Folder B in Co. 2 with Folder A as parent - Create a Folder C in Co. 1 with Folder B as parent - Put a file in each folder - Enable only Co. 1 - On left panel, select Folder A and unfold until Folder C appears Issue: The folder B is visible. Cause: When retrieving the folders to display in the search_panel, we retrieve all the ancestors of the available folders to display the complete folder tree for all available folders. Solution: Change the name of the unauthorized folders to "Restricted Folder". opw-3701633 Forward-Port-Of: odoo/enterprise#59681 Forward-Port-Of: odoo/enterprise#58422
**Before this PR:** When user tried to delete an archived document from the activity view, it led to a traceback. This same traceback was also encountered when a user changed the workspace of a document from activity view. This issue arose because the 'activity renderer' tried to display records of all resIds obtained from activity data, including the record of the document currently in preview, which would be deleted already. Thus, leading to the aforementioned traceback. **After this
Original PR description
**Before this PR:** When user tried to delete an archived document from the activity view, it led to a traceback. This same traceback was also encountered when a user changed the workspace of a…
**Before this PR:** When user tried to delete an archived document from the activity view, it led to a traceback. This same traceback was also encountered when a user changed the workspace of a document from activity view. This issue arose because the 'activity renderer' tried to display records of all resIds obtained from activity data, including the record of the document currently in preview, which would be deleted already. Thus, leading to the aforementioned traceback. **After this PR:** The issue has been addressed by updating the behavior of the 'ActivityRenderer' to retrieve and display the updated activity records in order to ensure accuracy. Apart from that, the progress bar was not updated after the docs were deleted. This PR solves that issue by calling the 'load' method of activity model along with the 'rootParams', and then calling the 'notify' method to update the data correctly. Task: [3714544](https://www.odoo.com/web#id=3714544&menu_id=4722&cids=2&action=333&active_id=10888&model=project.task&view_type=form) Forward-Port-Of: odoo/enterprise#59740 Forward-Port-Of: odoo/enterprise#56357
**Steps to reproduce:** - Install `Social Marketing` module - Add a LinkedIn stream and ensure stream already have some followers **Issue:** Followers count is not updated in the stream. **Cause:** Changed to API version 202401 in this commit: https://github.com/odoo/enterprise/commit/a6680edb9e7d91f6038d276f36d86aef07946fd9 Using deprecated parameter key (`CompanyFollowedByMember` instead of `COMPANY_FOLLOWED_BY_MEMBER`) in the API request when retrieving company followers.
Original PR description
**Steps to reproduce:** - Install `Social Marketing` module - Add a LinkedIn stream and ensure stream already have some followers **Issue:** Followers count is not updated in the stream. **Cause:** Changed to API version 202401 in this commit: https://github.com/odoo/enterprise/commit/a6680edb9e7d91f6038d276f36d86aef07946fd9 Using deprecated parameter key (`CompanyFollowedByMember` instead of `COMPANY_FOLLOWED_BY_MEMBER`) in the API request when retrieving company followers. More info: [LinkedIn API doc](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/organization-lookup-api?view=li-lms-2024-03&tabs=http#retrieve-organization-follower-count) opw-3798739 Forward-Port-Of: odoo/enterprise#59160