Monday, November 15, 2021
32 changes · master
Enhancements to existing features
Website background images now default to a centered position, making wide or tall images look better when replaced. Editors also get a rule-of-thirds grid while adjusting background position, helping them place key visual elements more accurately.
Original PR description
**PURPOSE:** When you use an image as a background, it is positionned at ~0% ~100%. 83% of pictures have the main element at the center of image and/or apply the rule of 1/3 but in both case, the…
**PURPOSE:**
When you use an image as a background, it is positionned at ~0% ~100%.
83% of pictures have the main element at the center of image
and/or apply the rule of 1/3 but in both case, the user will want to center
the background image.
We also want to help the user to place properly his image.
Other example, for the carousel snippet:
actual default position: https://cdn.discordapp.com/attachments/687642880793378830/748500811017093220/unknown.png
expected position: https://cdn.discordapp.com/attachments/687642880793378830/748500949454291034/unknown.png
**SPECIFICATION:**
Part 1:
By default the image should be vertically and horizontally centered.
Two pictures, one extra wide and one extra tall are in attachment.
Part 2:
Also to help the user to position the image with the ⅓ rule,
we should display a grid that divides a rectangle into nine equal parts
once the user start to position the background https://tinyurl.com/y3gdwaas
the same way we do it for the crop: https://tinyurl.com/yyts6obd
Note that the grid divide the image in 9 parts and not the visible area.
**LINKS:**
TaskID: 2319593
Closes: https://github.com/odoo/odoo/pull/58175Project customer rating reports and dashboards were refined to make satisfaction trends easier to understand, with clearer views, filters, badges, and menu placement. Project rating indicators now focus on the last 30 days, helping teams monitor recent customer satisfaction more accurately.
Original PR description
The purpose of the commit is to improve the customer rating report of the project app. So in this commit, done the below changes: - remove the project and task measures - switch the rating value and…
The purpose of the commit is to improve the customer rating report of the project app. So in this commit, done the below changes: - remove the project and task measures - switch the rating value and the count from a place in pivot view - remove the default group by the rated operator, keep it for graph view - reorder some fields on form and list view - use the badge widget for the rating field and the color code is applied to the form view - add an optional list view - the following fields should be optional: rated_partner_id, parent_ref, resource_ref, partner_id, feedback - all of these fields are displayed by default, except the feedback one that is hidden by default - add some demo data for the feedback field - center the information vertically in kanban view - move the 'customer ratings' menu item below the 'project costs and revenues' one - add the following filters: My Projects, My Team - reorder the group bys and rename 'Resource' into 'Task' - reorder the search fields - project kanban card:[Done] - the rating % represents the average satisfaction rate of the ratings submitted in the last 30 days (including today) - change the tooltip to the Average satisfaction rate for the last 30 days - the 'customer satisfaction' stat button display the last 30 days' rating on the project.project and this stat button should open the kanban view by default instead of the list view TaskId: 2531428
This change makes it easier for developers to customize what happens when users click images in binary image fields. It supports more flexible extensions of the web interface without changing the standard user experience.
Original PR description
allow override handler in extended widget. 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
Website editors can now set minimum and maximum values for chart axes in line and bar charts. This helps charts better reflect data ranges that do not start near zero, making visual reporting clearer and less misleading.
Original PR description
PURPOSE: If your data aren't close to zero, your chart could not represent reality. SPECIFICATION Add two inputs: min and max for the values of the chart axis configuration. task-2250766 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The mail app now organizes attachment box actions in a dedicated internal model instead of keeping them in the display component. This makes the feature easier to maintain and helps support more reliable future improvements without changing the user experience.
Original PR description
Before this PR, attachment box event handlers where stored inside the attachment box component. This PR move the handlers inside a dedicated model. part of task-2579306
Resolved issues and error corrections
The eCommerce search bar now handles products assigned to more than one public category without crashing. Category labels are shown correctly as separate links and are no longer incorrectly treated as searchable product text, improving the shopping search experience.
Original PR description
This commit fixes an issue when there are several public categories on a single product. Categories are shown side-by-side under product name in the search bar. This commit also fixes the issue where…
Miscellaneous changes
Forward-Port-Of: odoo/odoo#79676 Forward-Port-Of: odoo/odoo#79669
Original PR description
Forward-Port-Of: odoo/odoo#79676 Forward-Port-Of: odoo/odoo#79669
This commit fixes an issue when there are several public categories on
a single product. Categories are shown side-by-side under product name
in the search bar.
This commit also fixes the issue where the `Category:X` text is matched
and highlighted whereas the search test is not used to match the product
categories.
Steps to reproduce :
- Install eCommerce
- Add several eCommerce Categories to a product
- Go to shop
- Search for the product in the searchbar
- Traceback
Current Behavior :
- Traceback when generating the results in the quick search bar.
It's not expected to have several categories in the current
implementation.
- If all products have a unique category, then the text in
`Category:X` is matched and highlighted.
Desired Behavior :
- No traceback
- When there are multiple categories, an extra link should be
present on each category rather than a unique link on all
categories.
- The product categories don't have to be matched.
Related PR: #79258
task-2680726
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis update removes an unused styling marker from the company switching menu. It has no expected impact on user workflows, but keeps the web interface code cleaner and easier to maintain.
Original PR description
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
This fix stops users from creating time off allocations for leave types that do not require allocation. It helps keep HR records consistent and prevents unnecessary or incorrect allocation entries.
Original PR description
User should not be able to create allocations for Time Off Types that does not
requires allocation ('requires_allocation' is not 'yes').
task - 2658250
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-prThis update removes an unused styling marker from the mobile company switcher menu. It is a small cleanup that helps keep the web interface code simpler without changing how users interact with the system.
The error "ResizeObserver loop limit exceeded" was catch by the browser error global listener. this error was wrongly flagged as a CORS error. This error is well known to be useless and can safely be ignored. We do so. Task-2670745 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79571
Original PR description
The error "ResizeObserver loop limit exceeded" was catch by the browser error global listener. this error was wrongly flagged as a CORS error. This error is well known to be useless and can safely be ignored. We do so. Task-2670745 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79571
When selecting a link in the web editor, there were different glitches. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#78301
Original PR description
When selecting a link in the web editor, there were different glitches. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#78301
In the editor, there was a little spot where it was impossible to click in order to select a text. Task-2684378 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79355
Original PR description
In the editor, there was a little spot where it was impossible to click in order to select a text. Task-2684378 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79355
As an oversight of 2185e89e3f2a15b98b9cb8c3371a6031f9a6f055, it became impossible to move snippets. Task-2688281 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79633
Original PR description
As an oversight of 2185e89e3f2a15b98b9cb8c3371a6031f9a6f055, it became impossible to move snippets. Task-2688281 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79633
The commit 1b80fe9b56acea09a6784691561df65fe6349f50 made impossible to undo after dropping a snippet. Task-2688104 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79631
Original PR description
The commit 1b80fe9b56acea09a6784691561df65fe6349f50 made impossible to undo after dropping a snippet. Task-2688104 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79631
Steps to reproduce the bug: - Install POS - Go to the POS settings and enable “Gift Card” option - Create a new Gift card with initial amount of $50 - Open a new POS session > create an order of $50 and apply the gift card - Confirm the order > the order state becomes “paid” and the gift card balance is computed correctly: $0 Problem: Close the POS session, the order state becomes “done” and the balance is computed wrongly: $50 opw-2683523 -- I confirm I have signed the CLA
Original PR description
Steps to reproduce the bug: - Install POS - Go to the POS settings and enable “Gift Card” option - Create a new Gift card with initial amount of $50 - Open a new POS session > create an order of $50 and apply the gift card - Confirm the order > the order state becomes “paid” and the gift card balance is computed correctly: $0 Problem: Close the POS session, the order state becomes “done” and the balance is computed wrongly: $50 opw-2683523 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79701
The two fields (name & price) were only updated on pricelist (`product.pricelist`) save, not when the rules were updated (`product.pricelist.item`). The reason was that name and price are compute fields, which were added to the tree view but not added to the form view. This commit adds "name" and "price" to the `product.pricelist.item` form view and hence the values will be updated as soon as the popup form is saved. Fixes: #78488 -- I confirm I have signed the CLA and read the PR g
Original PR description
The two fields (name & price) were only updated on pricelist (`product.pricelist`) save, not when the rules were updated (`product.pricelist.item`). The reason was that name and price are compute fields, which were added to the tree view but not added to the form view. This commit adds "name" and "price" to the `product.pricelist.item` form view and hence the values will be updated as soon as the popup form is saved. Fixes: #78488 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#78699
Updating the producing quantity may wrongly change the consumed quantity of tracked products To reproduce the issue: 1. Create two storable products P1, P2: - P2 is tracked by lots 2. Update P2's quantity >= 10 3. Create a BoM: - Product: P1 - Components: 1 x P2 4. Create and confirm a MO for 10 x P1 5. Check availability 6. Edit the MO and set the consumed quantity of P2 to 10 7. Edit the MO and set the producing quantity to 8 Error: The consumed quantity of P2 beco
Original PR description
Updating the producing quantity may wrongly change the consumed quantity
of tracked products
To reproduce the issue:
1. Create two storable products P1, P2:
- P2 is tracked by lots
2. Update P2's quantity >= 10
3. Create a BoM:
- Product: P1
- Components: 1 x P2
4. Create and confirm a MO for 10 x P1
5. Check availability
6. Edit the MO and set the consumed quantity of P2 to 10
7. Edit the MO and set the producing quantity to 8
Error: The consumed quantity of P2 becomes 1
When saving the MO, it also writes the `lot_ids` on `move_raw_ids` while
it shouldn't. As a result, it triggers method `_set_lot_ids` for no
reason and lead to an undesirable behavior.
OPW-2667412
Forward-Port-Of: odoo/odoo#79565Before this commit, it wasn't possible to save the volume of guests, the backend was already implemented but the feature hasn't been implemented in the frontend, this commit fixes this issue by completing the implementation. taskId-2679227 Forward-Port-Of: odoo/odoo#79131
Original PR description
Before this commit, it wasn't possible to save the volume of guests, the backend was already implemented but the feature hasn't been implemented in the frontend, this commit fixes this issue by completing the implementation. taskId-2679227 Forward-Port-Of: odoo/odoo#79131
Before this commit, granting the video permission when the call had already ended would generate a traceback. This commit fixes this issue. Forward-Port-Of: odoo/odoo#79702
Original PR description
Before this commit, granting the video permission when the call had already ended would generate a traceback. This commit fixes this issue. Forward-Port-Of: odoo/odoo#79702
Remove onbeforeunload pop-up if editor has no snippet. This fix pop-ups wrongly showing outside website editing. see: #79731 task-2666177 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79747
Original PR description
Remove onbeforeunload pop-up if editor has no snippet. This fix pop-ups wrongly showing outside website editing. see: #79731 task-2666177 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79747
Before this commit, it was possible to lock the transceivers of the streams when the remote was updating this stream. This commit fixes this issue. Forward-Port-Of: odoo/odoo#79750
Original PR description
Before this commit, it was possible to lock the transceivers of the streams when the remote was updating this stream. This commit fixes this issue. Forward-Port-Of: odoo/odoo#79750
Description of the issue/feature this PR addresses: When create expense product, it raise validation error. The issue was mandatory field of product was not available on form view. Fixes: #78498 Current behavior before PR:  Desired behavior after PR is merged: Able to create expense product. -- I confirm I have signed the
Original PR description
Description of the issue/feature this PR addresses: When create expense product, it raise validation error. The issue was mandatory field of product was not available on form view. Fixes: #78498 Current behavior before PR:  Desired behavior after PR is merged: Able to create expense product. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#78750
The field contract_type_id is added in hr_contract, but is not present in the view. Why not a custom module to add this field in the view? The hr_contract is the base module, then, my custom module install it, but it need to set the contract type and the field is not present. The field cannot be added in the custom module, because some customers that use my module also needs hr_contract_salary, that adds the field in the view. Then, this is related with another PR in enterprise tha
Original PR description
The field contract_type_id is added in hr_contract, but is not present in the view. Why not a custom module to add this field in the view? The hr_contract is the base module, then, my custom module install it, but it need to set the contract type and the field is not present. The field cannot be added in the custom module, because some customers that use my module also needs hr_contract_salary, that adds the field in the view. Then, this is related with another PR in enterprise that removes the field from the view on that module. 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 Forward-Port-Of: odoo/odoo#79723
Description of the issue/feature this PR addresses: Make the is_css_preprocessed function return all attachments that meet the conditions. Current behavior before PR: When there are both .less and .scss files, The is_css_preprocessed function only returns the attachments of the last type (.less),cause .scss attachment to never be deleted. Desired behavior after PR is merged: return all the attachments in the for loop #74952 -- I confirm I have signed the CLA and read the PR
Original PR description
Description of the issue/feature this PR addresses: Make the is_css_preprocessed function return all attachments that meet the conditions. Current behavior before PR: When there are both .less and .scss files, The is_css_preprocessed function only returns the attachments of the last type (.less),cause .scss attachment to never be deleted. Desired behavior after PR is merged: return all the attachments in the for loop #74952 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79755 Forward-Port-Of: odoo/odoo#79458
Priori to this fix: * The domain provided to the invisible member of the attrs was wrong as it was using the '=' operator. After this fix: * The domain provided to the invisible member of the attrs is using the 'in' operator. task-2691562 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#79793
Original PR description
Priori to this fix:
* The domain provided to the invisible member of the attrs was wrong
as it was using the '=' operator.
After this fix:
* The domain provided to the invisible member of the attrs is using
the 'in' operator.
task-2691562
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#79793In case of conflicts or uncovered work schedule, a too generic user error message is displayed, which is not useful enough to help find and solve the issue. We should add more information about the concerned time intervals in error. opw-2611123 Forward-Port-Of: odoo/enterprise#21949 Forward-Port-Of: odoo/enterprise#21814
Original PR description
In case of conflicts or uncovered work schedule, a too generic user error message is displayed, which is not useful enough to help find and solve the issue. We should add more information about the concerned time intervals in error. opw-2611123 Forward-Port-Of: odoo/enterprise#21949 Forward-Port-Of: odoo/enterprise#21814
Current behavior: When clicking on an analytic account it shows all the entries of the db Expected behavior: When clicking on an analytic account it should only show the entries for this account Steps top reproduce: Accounting ---> Reporting -----> Analytic report, click on an analytic account and click on analytic entries bug introduced by f546e1b overriding the domain set in the xml opw-2686516 Forward-Port-Of: odoo/enterprise#22242 Forward-Port-Of: odoo/enterprise#22240
Original PR description
Current behavior: When clicking on an analytic account it shows all the entries of the db Expected behavior: When clicking on an analytic account it should only show the entries for this account Steps top reproduce: Accounting ---> Reporting -----> Analytic report, click on an analytic account and click on analytic entries bug introduced by f546e1b overriding the domain set in the xml opw-2686516 Forward-Port-Of: odoo/enterprise#22242 Forward-Port-Of: odoo/enterprise#22240
The field contract_type_id is added in hr_contract, and now is added on the view of that module on https://github.com/odoo/odoo/pull/79723 Why not a custom module to add this field in the view? The hr_contract is the base module, then, my custom module install it, but it need to set the contract type and the field is not present. The field cannot be added in the custom module, because some customers that use my module also needs hr_contract_salary, that adds the field in the view. Fo
Original PR description
The field contract_type_id is added in hr_contract, and now is added on the view of that module on https://github.com/odoo/odoo/pull/79723 Why not a custom module to add this field in the view? The hr_contract is the base module, then, my custom module install it, but it need to set the contract type and the field is not present. The field cannot be added in the custom module, because some customers that use my module also needs hr_contract_salary, that adds the field in the view. Forward-Port-Of: odoo/enterprise#22239
Forward-Port-Of: odoo/enterprise#21801
Original PR description
Forward-Port-Of: odoo/enterprise#21801
Forward-Port-Of: odoo/enterprise#22037
Original PR description
Forward-Port-Of: odoo/enterprise#22037
Adding payroll structure and rules for KSA including end of services rules Forward-Port-Of: odoo/enterprise#21455
Original PR description
Adding payroll structure and rules for KSA including end of services rules Forward-Port-Of: odoo/enterprise#21455