Friday, January 7, 2022
13 changes · master
Enhancements to existing features
The Time Off overview's “My Department” filter now includes employees in child departments throughout the full department hierarchy. This gives managers and HR users a more complete view of planned absences across their whole area of responsibility.
Original PR description
…nts. The "My department" filter in the "Time Off" overview menu is changed to also include the leaves of employees from child departments (all the way to the bottom of the hierarchy). 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 can now see the option to add related items directly from a kanban view, even when they are not in edit mode. This makes it easier to discover how to create sub-elements and reduces extra navigation or mode switching.
Original PR description
Purpose ======= Show to users how they can create sub-elements without them needing to go into edit more. Task-2710543
The mail app’s file upload behavior has been reorganized behind the scenes to better align with how message and activity views are managed. This should make attachment-related interactions easier to maintain and more consistent without changing day-to-day user workflows.
Original PR description
task-2579306
This update removes duplicate internal data used by stock delivery reports and relies on one consistent source instead. It also expands automated report checks so localization-specific report changes are more likely to be caught before they cause errors.
Original PR description
clean commit bef1765b197a9e9d510a7d20d0364333402473b0
The Mexican electronic stock delivery report now uses one consistent unit-of-measure field instead of a duplicated report key. This helps prevent confusing or incorrect unit labels on delivery documents while keeping the change small and low risk.
Original PR description
A duplicated key was used in the report due to a fix in stable version. The key was removed to use a single one named product_uom
Resolved issues and error corrections
This fixes a small issue that could prevent users from adding emoji reactions to messages. It helps keep message interactions smooth and avoids frustration in everyday collaboration.
Original PR description
Small fix when adding a reaction to a message -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Miscellaneous changes
When we create a record with a very long continuous title (without spaces) the string comes out of the kanban block. Reproducible on several applications such as Notes, CRM, etc. Before:  After:  opw-2680915 Forward-Port-Of: odoo/odoo#82306
Original PR description
When we create a record with a very long continuous title (without spaces) the string comes out of the kanban block. Reproducible on several applications such as Notes, CRM, etc. Before:  After:  opw-2680915 Forward-Port-Of: odoo/odoo#82306
Before this commit, when the a subtask is in the same project than the parent one and the internal user has manually set the project to see this task in the main kanban view of tasks of the project. In project sharing view, the collaborator cannot see the 'View Task' button in the sub list view of subtasks shown in the form view of the parent one. This commit fixes it to shown the button when the subtask is in the same project than the parent one. Steps to reproduce: ================
Original PR description
Before this commit, when the a subtask is in the same project than the parent one and the internal user has manually set the project to see this task in the main kanban view of tasks of the project.…
Before this commit, when the a subtask is in the same project than the parent one and the internal user has manually set the project to see this task in the main kanban view of tasks of the project. In project sharing view, the collaborator cannot see the 'View Task' button in the sub list view of subtasks shown in the form view of the parent one. This commit fixes it to shown the button when the subtask is in the same project than the parent one. Steps to reproduce: ================== 1) Create a Project A 2) Create a Task T in the Project A 3) Add a subtask in T and set the project A in the subtask 4) Share in edit mode the project A to a portal user 5) Log out and log in as the portal user 6) Go to the Project A to see the kanban view of tasks in project sharing feature. 7) Go to the task T and see the subtasks list view. Expected Behaviour: ================== The 'View Task' should be shown for this subtask because the subtask is in the same project than the parent one. Actual Behaviour: ================ This button is not shown. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#82359
In saas-15.1 move_lines on `stock.picking` has been rename in move_ids. It was miss during #81595 and it's fixed now Forward-Port-Of: odoo/odoo#82385
Original PR description
In saas-15.1 move_lines on `stock.picking` has been rename in move_ids. It was miss during #81595 and it's fixed now Forward-Port-Of: odoo/odoo#82385
…try code The number is set as zeros, but we should still provide the IdPaese tag. 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#82327
Original PR description
…try code The number is set as zeros, but we should still provide the IdPaese tag. 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#82327
Affects v.14.0 and above. The exact same issue had been fixed in v13 by https://github.com/odoo/enterprise/commit/c682a1ae45bebfcd61993a070cb6508b4d01b208 but the code was rewritten since. ### The issue: When validating the payment CFDI, the Mexican government checks that the `Monto` amount of the payment is greater or equal to the sum of the `ImpPagado / TipoCambioDR` amounts for the invoices. This check sometimes fails for large invoices in USD where the payment is in MXN, because
Original PR description
Affects v.14.0 and above. The exact same issue had been fixed in v13 by https://github.com/odoo/enterprise/commit/c682a1ae45bebfcd61993a070cb6508b4d01b208 but the code was rewritten since. ### The…
Affects v.14.0 and above. The exact same issue had been fixed in v13 by https://github.com/odoo/enterprise/commit/c682a1ae45bebfcd61993a070cb6508b4d01b208 but the code was rewritten since. ### The issue: When validating the payment CFDI, the Mexican government checks that the `Monto` amount of the payment is greater or equal to the sum of the `ImpPagado / TipoCambioDR` amounts for the invoices. This check sometimes fails for large invoices in USD where the payment is in MXN, because the TipoCambioDR field is rounded to six decimals in the `payment10.xml` QWeb view. For example, take the following situation: - An invoice was issued for USD 20,000 - When it was paid, the rate of the day was 0.0500004 USD/MXN - So the customer paid MXN 399996,80 - In the CFDI, the TipoCambioDR is rounded down to 0.050000 USD/MXN - So ImpPagado / TipoCambioDR = 20,000 / 0.05 = 400000 USD - This is greater than the 399996,80 of the payment, so the check fails. In Odoo, the error appears like this: > Código: CRP206 - La suma de los valores registrados en el campo ImpPagado de los apartados DoctoRelacionado no es menor o igual que el valor del campo Monto. > Mensaje: La sumatoria de los ImpPagado de los DoctoRelacionado es mayor al del monto ValorEsperado: 473509.03 ValorReportado: 473504.46 ### The solution: Round the TipoCambioDR up, rather than down. ### Does it work? See [this video](https://drive.google.com/file/d/1lMqG4195yOTvpFTH9MriTuV3CEshtmn0/view?usp=sharing). ### Note: Monto: the total amount paid by the payment (e.g. in MXN) ImpPagado: the portion of the invoice paid by the payment (e.g. in USD) TipoCambioDR: the exchange rate between the payment and the invoice opw-2683245 @smetl I think you would be the most appropriate person to review this, once you have some time for it :smile: Forward-Port-Of: odoo/enterprise#23201
Introduce by https://github.com/odoo/odoo/commit/5b2eb004c92dc80e540373680d0ab6ab2f0af0f4 In the payment CFDI, we need to report the payer bank account instead of the receiving one. issue: 2698188 Forward-Port-Of: odoo/enterprise#23303 Forward-Port-Of: odoo/enterprise#23136
Original PR description
Introduce by https://github.com/odoo/odoo/commit/5b2eb004c92dc80e540373680d0ab6ab2f0af0f4 In the payment CFDI, we need to report the payer bank account instead of the receiving one. issue: 2698188 Forward-Port-Of: odoo/enterprise#23303 Forward-Port-Of: odoo/enterprise#23136
Forward-Port-Of: odoo/enterprise#23304
Original PR description
Forward-Port-Of: odoo/enterprise#23304