Friday, December 23, 2022
7 changes · master
Enhancements to existing features
Product forms now show an average stock value for FIFO products instead of the value of the next item expected to leave stock. This makes inventory reports, adjustments, and margin estimates better aligned with real stock value when purchase prices vary.
Original PR description
…form Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Users editing a view from the debug menu are now taken to a regular screen instead of a pop-up dialog. When they return using the breadcrumb, the updated view is shown automatically, reducing extra refresh steps and making configuration changes easier to verify.
Original PR description
Before this commit, editing views from debug menu opened a dialog and the user needed to refresh the page to see the changes. Now, the edit view is opened in a new action so when the user goes back in the breadcrumb, the view is updated. task id: 3081332
List view column headers now stay visible while users scroll through long tables. This makes it easier to track which information is in each column and improves day-to-day navigation in data-heavy screens.
Original PR description
With this commit, the header of list views no longer scrolls with the table, it remains visible on the top when scrolling. Task 1917230
Users can now quickly create records directly in Kanban columns grouped by multi-value fields, such as assignees or tags. This makes common Project workflows faster, including creating tasks from My Tasks or grouped project boards without extra navigation.
Original PR description
This commit adds the ability to quick create records from the kanban view when it is grouped by a many2many field. This feature improve the user experience for multiple views, here are some examples of new possible workflows: - Project -> My tasks (this view is grouped by m2m) -> quick create - Project -> Select a project -> group by Assignees -> quick create - Multiple module -> group by tags -> quick create The "My Tasks" view is grouped by the m2m `personal_stage_type_ids` field which is a complicated computed field on which we cannot write. A custom behaviour in their `ProjectTaskRecord` was necessary in order to support this feature. Previously, they also implemented a custom behaviour for this field to be able to move records between groups. task-id: 2960497
Images added to website content by dragging, dropping, or pasting are now saved as regular attachments instead of being embedded directly in the page. This improves page storage and consistency with other image editing actions, while also simplifying supported image type handling behind the scenes.
Original PR description
When images are dropped from outside the browser into a website page text paragraph, they are stored as an inline base64-encoded source. This commit marks those images to be saved as attachments when it happens in website. The save happens upon page save similarly to what is done when images are transformed. This commit also applies this behavior for pasted images. task-2928495
Code cleanup and technical improvements
The Activity view has been rebuilt using Odoo’s current interface framework, making it easier to maintain and align with other views. Related project customizations and CRM progress bar components were adapted so the same behavior is preserved while improving reuse and code clarity.
Original PR description
[[REF] mail, *: convert Activity view to Owl](https://github.com/odoo/odoo/commit/56cb4952c0b0ae54b9902626c4e8eaeb84d4275a) This commit converts the Activity view to the current framework shared by…
[[REF] mail, *: convert Activity view to Owl](https://github.com/odoo/odoo/commit/56cb4952c0b0ae54b9902626c4e8eaeb84d4275a) This commit converts the Activity view to the current framework shared by other views. Instead of extending Kanban view/elements, the Activity view has been implemented by its own. The project customization of the view has also been converted, as legacy files have been removed. Some tests have been adapted since some classnames might differ from the old implementation, resulting to failing tests. But the overall testing cases have been conserved. [[REF] web, crm: adapt Kanban progressbar to be a component](https://github.com/odoo/odoo/commit/ca8164e13c16081c3aa75619741fa29cb60160ef) This commit moves some parts of the code used by the progress bar of kanban to its own component. It is now clearer to distinguished its code from the renderer code (see crm_kanban_renderer). Also, it allows to re-use this component in other views without making a direct use of 'kanban' elements. The KanbanAnimatedNumber component has simply be renamed to AnimatedNumber, as this naming suggested the element was only used as a Kanban element. This more generic name now indicates that the element can be imported and used in other places.
The bank statement and account setup import tools were updated to work with Odoo's newer import interface. This keeps existing import workflows compatible after the underlying import technology was modernized, with limited visible change for end users.
Original PR description
*: account_setup_import, account_bank_statement_import. This commit adapts the code of those modules since the legacy implementation of the import action has been removed. Since it has been converted to make the use of Owl components, structured in different files and folders, it was necessary to rewrite those extensions properly, whether by patching or extending the current files. Community PR: https://github.com/odoo/odoo/pull/106265 task-3092474