Daily updates from Odoo
Thursday, June 20, 2024
7 changes · master
Enhancements to existing features
This update refreshes the app icons used in Knowledge and spreadsheet-related actions so they look more consistent across Odoo. Users will see clearer, more standardized visual cues when navigating these areas.
Original PR description
### `spreadsheet_edition`: add UI app icon Based on the introduction of the app icon for `spreadsheet`, this PR adds an UI icon for spreadsheet related actions. ### `knowledge`: normalize UI app icon…
### `spreadsheet_edition`: add UI app icon Based on the introduction of the app icon for `spreadsheet`, this PR adds an UI icon for spreadsheet related actions. ### `knowledge`: normalize UI app icon Mirror changes applied in community, [odoo/#163328](https://github.com/odoo/odoo/pull/163328). task-3884720 Requires: - https://github.com/odoo/odoo/pull/163328 --- | Before | After | |--------|--------| | <img width="233" alt="Capture d’écran 2024-05-30 à 11 46 06" src="https://github.com/odoo/enterprise/assets/80679690/d28f7070-94ef-4c6e-8a17-da535c0865f5"> | <img width="238" alt="Capture d’écran 2024-04-26 à 08 49 46" src="https://github.com/odoo/enterprise/assets/80679690/ccfce39d-84cc-43f9-82b9-1f2fc2341a6b"> | |  |  |
The appraisal screen buttons have been reordered so the most important actions appear first. This makes the workflow clearer and helps users find primary actions more quickly.
Original PR description
reorder the buttons to put the ones that can be primary in first positions task-3987601
Spreadsheet users now see distinct options for stacked and non-stacked Odoo charts in the chart side panel. This makes chart selection clearer and helps users choose the right visualization more easily.
Original PR description
This commit create distinct types for stacked/non stacked odoo charts in the side panel. Task: 3978202
Resolved issues and error corrections
This fixes an issue where product image previews could fail to display in the barcode inventory workflow after an underlying image component changed. A test was added to help ensure barcode users continue to see images as expected during inventory operations.
Original PR description
[1] did change the `ImageField` template, making the extend of this field in `stock_barcode` (`ImagePreviewField`) erroneous because the xpath in the template doesn't exist anymore. This commit fix this and adds a test to be sure the image field will be displayed as expected. [1] https://github.com/odoo/odoo/pull/167751
Code cleanup and technical improvements
Knowledge-specific editing commands are now separated from the standard editor, keeping the general editing experience simpler across Odoo. Knowledge articles still keep their dedicated commands, while other areas avoid seeing options that only apply to Knowledge.
Original PR description
This PR will refactor the codebase of Knowledge to avoid including in the global wysiwyg instance all blocks that are specific to Knowledge (i.e: the /clipboard, /file, /toc commands) and/or that depend on an article (i.e: the /kanban, /list, /card, /index commands). By doing that, we will avoid cluttering the global wysiwyg instance with functions, options, powerbox entries that are specific to Knowledge. This PR will use the following fields: - `knowledge_html_field`: This field will contain all commands that are specific to Knowledge and that do not depend on an article. People can easily use that field in their modules to enable the Knowledge commands. - `knowledge_article_html_field`: This field will contain all commands that are specific to Knowledge and that depend on an article. Those commands assume that the current record is a record of type `knowledge.article`: Those commands should hence not be used on another model and outside of Knowledge. task-3072864
Miscellaneous changes
Current behavior: --- When looking at an appointment availability, slots are missing (ie: 11pm-12am) Steps to reproduce: --- 1. Install website_appointment 2. Go to Appointment 3. Select/Create a resource appointment 4. Make sure resources use the default calendar 5. In schedule, change 'To' to midnight (00:00) 6. Click on 'Go to Website' 7. Select the next day 8. Should be available until midnight 9. => slots missing Cause of the issue: --- When computing unavailabilities wi
Original PR description
Current behavior: --- When looking at an appointment availability, slots are missing (ie: 11pm-12am) Steps to reproduce: --- 1. Install website_appointment 2. Go to Appointment 3. Select/Create a…
Current behavior: --- When looking at an appointment availability, slots are missing (ie: 11pm-12am) Steps to reproduce: --- 1. Install website_appointment 2. Go to Appointment 3. Select/Create a resource appointment 4. Make sure resources use the default calendar 5. In schedule, change 'To' to midnight (00:00) 6. Click on 'Go to Website' 7. Select the next day 8. Should be available until midnight 9. => slots missing Cause of the issue: --- When computing unavailabilities with _unavailable_intervals_batch, it takes all available slots: 12am-11:59am, 12pm-11:59pm then finds intervals between slots: 11:59am-12pm 11:59pm-12am These 1-minute intervals invalidate their respective slot => the slots 11am-12pm and 11pm-12am will show as unavailable Fix: --- Don't consider intervals that are one minute or less as unavailable Community PR: https://github.com/odoo/odoo/pull/163213 opw-3861561 Forward-Port-Of: odoo/enterprise#64949 Forward-Port-Of: odoo/enterprise#61403
[IMP] documents_account: Add selection of journal in Document Action 'import bank statement' Backport of: https://github.com/odoo/enterprise/pull/46482/commits/d2a95d7ffa3ef2976172ed17eaf93056ea0f8c6c For now we didn't chose the bank journal because we assume that only coda file where push like this, and in the coda file we can find in which journal to send it. But Coda is limited to BE and lot of user import CSV file for bank. Add the selection of the journal (not mandatory) for Docume
Original PR description
[IMP] documents_account: Add selection of journal in Document Action 'import bank statement' Backport of: https://github.com/odoo/enterprise/pull/46482/commits/d2a95d7ffa3ef2976172ed17eaf93056ea0f8c6c For now we didn't chose the bank journal because we assume that only coda file where push like this, and in the coda file we can find in which journal to send it. But Coda is limited to BE and lot of user import CSV file for bank. Add the selection of the journal (not mandatory) for Document action, and inject CSV in the journal selected. If no journal selected inject the CSV in the first one of the list. If it's a coda file, keep as now and don't take care of the journal selected. Task-3932055 Forward-Port-Of: odoo/enterprise#64997 Forward-Port-Of: odoo/enterprise#62752