Friday, April 26, 2024
5 changes · saas-17.1
Resolved issues and error corrections
Clicking a manager or coach avatar on an employee record no longer triggers an error. This keeps employee profile navigation smooth and prevents users from being interrupted by a system traceback.
Original PR description
This traceback occurs when the user clicks on the employee avatar in the employee form view. <h4>To reproduce this issue:-</h4> 1) Install `Employees` 2) open any employee record 3) click on the…
This traceback occurs when the user clicks on the employee avatar in the employee form view. <h4>To reproduce this issue:-</h4> 1) Install `Employees` 2) open any employee record 3) click on the `avatar` of `manager` or `coach` 4) A traceback occurs Error:- ``` ValueError: Invalid field 'employee_ids' on model 'hr.employee ``` When the user clicks on the `employee avatar` in the `Employee` module a traceback occurs after `[1]`. Because the `employee_ids` field is not present in `hr.employee`. which leads to the above traceback when the `read ` method `[2]` triggers with the model as `hr.employee` and fields including `employee_ids` [1] https://github.com/odoo/odoo/pull/157907/commits/fdc0693968b5e50b625406a38e26817d6d9d63ea [2] https://github.com/odoo/odoo/blob/503e9cbf16762cfd753c4427e13228c135db21d5/addons/resource_mail/static/src/components/avatar_card_resource/avatar_card_resource_popover.js#L32-L33 This commit will resolve this issue based on the model in `props` to concat `employee_id` or `employee_ids` in the fields. Related Enterprise PR:- https://github.com/odoo/enterprise/pull/61444 sentry-3954475523
This fixes an issue where importing Peppol documents could fail for users on the Community edition because the system referenced an Enterprise-only field. The import now uses the appropriate shared setting, preventing errors and keeping the OCR-related action hidden when it should be.
Original PR description
The recent commit https://github.com/odoo/enterprise/commit/b12fc61af033f8914529d86a3edb464fc951f7dc changed the way a move is created during the import of a new peppol document. Before, we were passing a default value for `extract_can_show_send_button`, but now we try to set this field to `False` directly in create values. However, this field only exists in enterprise and thus things break if a user is only using community. Also, it's a computed readonly field, so it is better to use `is_in_extractable_state` for this purpose. no task, fixing the error highlighted by tests --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Creating a customer from the Point of Sale no longer triggers an error when using the Argentinian localization. This keeps POS sessions running smoothly and avoids disruption during customer setup.
Original PR description
Steps to reproduce: 1. Install l10n_ar_pos. 2. Make sure we are in the Argentinian company. 3. Open PoS and create a new session. 4. When inside, try to create a new partner from here. The issue is that, since the changes where we retrieve the partner from the props, we might have cases where we don't have a partner since this field is defined as optional in our point_of_sale PartnerList, from we retrieve the props from. opw-3872968
This fix prevents an error from appearing when users click an employee avatar in the Planning app. It removes an enterprise-side change that is no longer needed because the related issue is handled in the core Odoo update, improving reliability without changing user workflows.
Original PR description
After the changes in the related community PR, Commit [2] is no longer needed as that use case in [2] will also resolved in the community PR mentioned below Community PR:- https://github.com/odoo/odoo/pull/163305 [2] https://github.com/odoo/enterprise/pull/58964/commits/7845ff85cad0714a95866f9bfcc9d717960ecf3c sentry-3954475523
The Soda import wizard now keeps its original guidance when the CodaBox integration is not installed. This avoids showing users a message meant only for companies using CodaBox, reducing confusion during Belgian accounting imports.
Original PR description
The soda import wizard message has been changed in commit https://github.com/odoo/enterprise/commit/6322a1850ec95948c517b6db5ecc9bff3e18f755\. The change in the message reflects a behavior change when the codabox module is installed. This message should stay unchanged when the codabox module is not installed.