Thursday, January 19, 2023
23 changes · master
New functionality added to Odoo
This change adds Lithuanian payroll localization so companies in Lithuania can manage payroll rules, structures, employee settings, and related accounting in Odoo. It helps businesses calculate and record payroll in line with local requirements, reducing manual setup and compliance effort.
Enhancements to existing features
Campaign quick creation now shows user avatars when assigning a responsible user. This makes it easier for teams to visually identify the right person and reduces selection mistakes.
Original PR description
Adds the user avatar widget to the quick create user field. Task-3113972
Resolved issues and error corrections
The company linked to an Amazon account is now locked after setup. This prevents users from changing it in a way that previously caused errors, improving reliability for Amazon sales operations.
Original PR description
Change of company was allowed on the amazon account but caused an error. From now on, the company field is readonly. task-3056418
Miscellaneous changes
Not sure how we forgot to put a neutralization script in CL, but this is the command that was there before in the support scripts and it at least changes the db to test environment. Forward-Port-Of: odoo/enterprise#36032
Original PR description
Not sure how we forgot to put a neutralization script in CL, but this is the command that was there before in the support scripts and it at least changes the db to test environment. Forward-Port-Of: odoo/enterprise#36032
Documents uploaded through shared links are now automatically linked to the relevant project when one is available. This keeps project files organized consistently, regardless of whether they are uploaded from the portal, Documents app, or a shared link.
Original PR description
When uploading a document through the portal or the documents app, we automatically link them to the relevant project or task. However, we don't do anything when uploading a document through a share link. With this PR, documents uploaded through a share link will be automatically linked to a relevant project if there is any. Task-3045852
The Belgian payroll DMFA report interface has been refined to make it easier to read and use. These updates improve the day-to-day experience for HR teams preparing or reviewing payroll reporting.
Original PR description
Various UX improvements for the dmfa report. task-2902077
This update modernizes how spreadsheet documents connect to live update services by removing an older session dependency. It is an internal improvement that should help maintain reliability without changing the user experience.
Original PR description
community: https://github.com/odoo/odoo/pull/110247
The subscription automated actions screens have been made easier to read and use. This helps business users understand and configure subscription-related automations with less technical complexity.
Original PR description
Now that we added more possibilities of actions in Automated actions (#33239) it gives more visibility to this model but the UX of it is bad and too technical. This commit improve the lisibility and UX of the automated actions. task-id : 3082437
Accounting journals can now be configured to automatically extract invoice data only from PDF attachments received through their email alias. This helps businesses avoid processing unsupported or irrelevant email attachments while keeping invoice automation focused on reliable PDF documents.
Original PR description
Adds the option on journal to auto extract only pdf attachments from emails received trough the journal email alias. Task: 3060818
This fixes the Peru electronic inventory settings so they use the updated settings structure. As a result, users can reliably search for these settings in Odoo configuration screens.
Original PR description
Change the arch to use the new tags for the settings. If the new tags are not used, the search cannot be performed on these settings. See: 02f7835aade005484ca49a8ba4c5c5feea249aae
Assign 0 by default to `asset_depreciated_value` and `asset_remaining_value` in case `self.asset_id` is not set. When trying to access `asset_remaining_value` while the `account.move` was not linked to an `account.asset`, `ValueError: Compute method failed to assign account.move(XX,).asset_remaining_value` would be raised. Moreover [as stated here](https://www.odoo.com/documentation/16.0/developer/reference/backend/orm.html#:~:text=It%20must%20assign%20the%20computed%20value%20to%20the%20f
Original PR description
Assign 0 by default to `asset_depreciated_value` and `asset_remaining_value` in case `self.asset_id` is not set. When trying to access `asset_remaining_value` while the `account.move` was not linked to an `account.asset`, `ValueError: Compute method failed to assign account.move(XX,).asset_remaining_value` would be raised. Moreover [as stated here](https://www.odoo.com/documentation/16.0/developer/reference/backend/orm.html#:~:text=It%20must%20assign%20the%20computed%20value%20to%20the%20field), it is mandatory to assign a value in the `compute` method. OPW-3099975 OPW-3083321 OPW-3123496 OPW-3121606 Forward-Port-Of: odoo/enterprise#35916
## Steps to reproduce * Install l10n_cl, Accounting, Sales * Switch company to CL Company * Go to Settings > Sales > Enable "Discounts" * Create a vendor bill with a line that has a discount. * Validate the bill * Attempt to create a debit note (from the bill) with SII Reference Code: `1 Cancels reference document` You should be met with a user error (unbalanced journal entry). Note: in 16.0, the debit note is created without error, but the amount is wrong. ## Cause The discount
Original PR description
## Steps to reproduce * Install l10n_cl, Accounting, Sales * Switch company to CL Company * Go to Settings > Sales > Enable "Discounts" * Create a vendor bill with a line that has a discount. * Validate the bill * Attempt to create a debit note (from the bill) with SII Reference Code: `1 Cancels reference document` You should be met with a user error (unbalanced journal entry). Note: in 16.0, the debit note is created without error, but the amount is wrong. ## Cause The discount is not taken into account. ## opw-3043809 Co-authored-by: myhy-odoo <myhy@odoo.com> Forward-Port-Of: odoo/enterprise#35918 Forward-Port-Of: odoo/enterprise#35039
Forward-Port-Of: odoo/enterprise#35789
Original PR description
Forward-Port-Of: odoo/enterprise#35789
**Current behavior before PR:** When we use the '/Appoiment' command and select the Appointment Types then click on insert link. the link does not work because it's not a link. **Desired behavior after PR is merged:** The link should be inserted and work fine. **Task**-3112079 Forward-Port-Of: odoo/enterprise#35810 Forward-Port-Of: odoo/enterprise#35657
Original PR description
**Current behavior before PR:** When we use the '/Appoiment' command and select the Appointment Types then click on insert link. the link does not work because it's not a link. **Desired behavior after PR is merged:** The link should be inserted and work fine. **Task**-3112079 Forward-Port-Of: odoo/enterprise#35810 Forward-Port-Of: odoo/enterprise#35657
Since 16.0, printing a report to pdf or xlsx automatically unfolded all of its lines, leading to performance issues on large Aged Payable/Receivable (and other reports whose sublines result of a 'group by'). This behavior is intended on most reports, but we want to have more flexibility, and be able to change it case-by-case if necessary. This is done by slighlty modifying the way options['unfold_all'] is used, and the way options are handled when printing. We now always exclusively rely on t
Original PR description
Since 16.0, printing a report to pdf or xlsx automatically unfolded all of its lines, leading to performance issues on large Aged Payable/Receivable (and other reports whose sublines result of a…
Since 16.0, printing a report to pdf or xlsx automatically unfolded all of its lines, leading to performance issues on large Aged Payable/Receivable (and other reports whose sublines result of a 'group by'). This behavior is intended on most reports, but we want to have more flexibility, and be able to change it case-by-case if necessary. This is done by slighlty modifying the way options['unfold_all'] is used, and the way options are handled when printing. We now always exclusively rely on this option key to know whether or not to automatically unfold, even when printing. Thanks to this change, we are able to modify options['unfold_all'] in a custom options initializer for any report, giving us the flexibility we want. Aged Payable/Receivable now make use of this new feature to only unfold all their lines when printing if the 'Unfold All' filter was explicitly set by the user in the interface. Otherwise, by default, if no line is unfolded in the UI, none will be in the printed file either. Forward-Port-Of: odoo/enterprise#35925
Forward-Port-Of: odoo/enterprise#35612 Forward-Port-Of: odoo/enterprise#35603
Original PR description
Forward-Port-Of: odoo/enterprise#35612 Forward-Port-Of: odoo/enterprise#35603
Getting the values from each sign item in sign was done in general way, meaning that it would try to get the item's `.val()` and then check for special cases like selection, checkbox. This was confusing and caused some bugs like https://github.com/odoo/enterprise/pull/31227, opw-3045307 and opw-3101910. This commit explicitly handles each case, making it easier to customize behavior for each type of sign item. task-3109473 Forward-Port-Of: odoo/enterprise#35682
Original PR description
Getting the values from each sign item in sign was done in general way, meaning that it would try to get the item's `.val()` and then check for special cases like selection, checkbox. This was confusing and caused some bugs like https://github.com/odoo/enterprise/pull/31227, opw-3045307 and opw-3101910. This commit explicitly handles each case, making it easier to customize behavior for each type of sign item. task-3109473 Forward-Port-Of: odoo/enterprise#35682
Subscription input's style in expiration panel was not consistent with the rest of the app and was missing a o_input class Placeholder and text readability handled in: - https://github.com/odoo/odoo/pull/104136 task-3056877 Forward-Port-Of: odoo/enterprise#33650
Original PR description
Subscription input's style in expiration panel was not consistent with the rest of the app and was missing a o_input class Placeholder and text readability handled in: - https://github.com/odoo/odoo/pull/104136 task-3056877 Forward-Port-Of: odoo/enterprise#33650
Prior to this commit, it was impossible to validate a transfer with multiple packages with easypost Purolator or DPD UK. A rate_error message "multi-shipment rate includes this shipment." is returned by Purolator and DPD UK. To reproduce: - Create Shipping Method with Esaypost -> Purolator or DPD UK - Create a Company and a Customer in Canada or UK to create a Sale Order with them - Add 2 packages or more in the delivery before validating the transfer You can find the response from Puro
Original PR description
Prior to this commit, it was impossible to validate a transfer with multiple packages with easypost Purolator or DPD UK. A rate_error message "multi-shipment rate includes this shipment." is returned…
Prior to this commit, it was impossible to validate a transfer with multiple packages with easypost Purolator or DPD UK. A rate_error message "multi-shipment rate includes this shipment." is returned by Purolator and DPD UK.
To reproduce:
- Create Shipping Method with Esaypost -> Purolator or DPD UK
- Create a Company and a Customer in Canada or UK to create a Sale Order with them
- Add 2 packages or more in the delivery before validating the transfer
You can find the response from Purolator and DPD UK here:
https://drive.google.com/file/d/15dOhth81IvyUPP-PQMw-20oHN3JfIbBs/view?usp=sharing
https://drive.google.com/file/d/1vhM0a5au03LPKY132zZxY4qUAy9C4TVQ/view?usp=sharing
```
"messages": [
{
"carrier": "Purolator",
"carrier_account_id": "ca_b79050ae417b4ad4a45205e2e0bffe67",
"type": "rate_error",
"message": "Purolator multi-shipment rate includes this shipment."
}
```
Concerning UPS, even though the logic of purolator and dpd UK may also work for UPS, I could not test it as we do not have Easypost UPS credentials. Hence I kept the existing logic for this carrier to not cause any unforeseen issues.
OPW-3093545
OPW-3098648
Forward-Port-Of: odoo/enterprise#35148log in as sales user and access subscription app and try closing a subscription, on clicking the close button, user will receive access right error saying, user doesn't have permission to the model. Forward-Port-Of: odoo/enterprise#35127
Original PR description
log in as sales user and access subscription app and try closing a subscription, on clicking the close button, user will receive access right error saying, user doesn't have permission to the model. Forward-Port-Of: odoo/enterprise#35127
Steps to reproduce: - Install documents app - Remove the login user picture issue - Go to the Document > select multiple image and share it. - Copy the share link and open it Problem: When the user's profile picture is not set, svg returns and since image tag does not support svg, the image is not visible. Solution: We have always returned image content. Ref: /web/image controller. Forward-Port-Of: odoo/enterprise#35955 Forward-Port-Of: odoo/enterprise#34736
Original PR description
Steps to reproduce: - Install documents app - Remove the login user picture issue - Go to the Document > select multiple image and share it. - Copy the share link and open it Problem: When the user's profile picture is not set, svg returns and since image tag does not support svg, the image is not visible. Solution: We have always returned image content. Ref: /web/image controller. Forward-Port-Of: odoo/enterprise#35955 Forward-Port-Of: odoo/enterprise#34736
Prior to this commit, the controller did not re-render when closing the attachment viewer causing some inconsistencies in the view. TaskId-3140786 Forward-Port-Of: odoo/enterprise#35954
Original PR description
Prior to this commit, the controller did not re-render when closing the attachment viewer causing some inconsistencies in the view. TaskId-3140786 Forward-Port-Of: odoo/enterprise#35954
This PR is related to odoo/odoo#110110, where the order of keys in the web_search_read kwargs has been changed. This commit adapts a test accordingly. Forward-Port-Of: odoo/enterprise#35949
Original PR description
This PR is related to odoo/odoo#110110, where the order of keys in the web_search_read kwargs has been changed. This commit adapts a test accordingly. Forward-Port-Of: odoo/enterprise#35949