Friday, October 1, 2021
8 changes
Enhancements to existing features
Employee forms now hide Belgium-specific payroll and holiday pay fields when the active company is not Belgian. This keeps employee records cleaner and reduces confusion for businesses operating outside Belgium.
Original PR description
This commit hides a part of the employee's form view in non belgian companies as they are unused in those contexts anyway. TaskId-2648339
Miscellaneous changes
Since https://github.com/odoo/enterprise/pull/20918 there was an error in the case where easypost did not return any message OPW-2658568 Forward-Port-Of: odoo/enterprise#21302
Original PR description
Since https://github.com/odoo/enterprise/pull/20918 there was an error in the case where easypost did not return any message OPW-2658568 Forward-Port-Of: odoo/enterprise#21302
Steps to reproduce the bug: 1. Create a tax included in price T1 2. Create a customer with a fiscal position that should replace the current tax T1 by a 0% tax T2 3. Create a subscription product with this tax 4. Create a subscription and invoice it Bug: The invoice generated from a subscription has the T2 on its line but it did not deduct the included tax T1 from the unit price opw:2637567 Forward-Port-Of: odoo/enterprise#20904
Original PR description
Steps to reproduce the bug: 1. Create a tax included in price T1 2. Create a customer with a fiscal position that should replace the current tax T1 by a 0% tax T2 3. Create a subscription product with this tax 4. Create a subscription and invoice it Bug: The invoice generated from a subscription has the T2 on its line but it did not deduct the included tax T1 from the unit price opw:2637567 Forward-Port-Of: odoo/enterprise#20904
After making country_id mandatory in account_tax_groups, some tests started to fail and needed adaptation. Also test data needed some mending. * l10n_cl_edi: Tests must look for CL latam document types only * l10n_pe_edi: Renaming tax groups data file Forward-port of: #19640 Forward-Port-Of: odoo/enterprise#21128
Original PR description
After making country_id mandatory in account_tax_groups, some tests started to fail and needed adaptation. Also test data needed some mending. * l10n_cl_edi: Tests must look for CL latam document types only * l10n_pe_edi: Renaming tax groups data file Forward-port of: #19640 Forward-Port-Of: odoo/enterprise#21128
Fix two tests to avoid non-deterministic fails. Forward-Port-Of: odoo/enterprise#21315
Original PR description
Fix two tests to avoid non-deterministic fails. Forward-Port-Of: odoo/enterprise#21315
Apparently things had not been updated since the last changes to report typing. `_render_template` yields `bytes` while `_run_wkhtmltopdf` wants `str`, so work on `bytes` headers and footers but `decode` before feeding to `_run_wkhtmltopdf`. Also removed support for non-minimal layouts: they seem completely unused and represent the vast majority of the complexity. Forward-Port-Of: odoo/enterprise#21293
Original PR description
Apparently things had not been updated since the last changes to report typing. `_render_template` yields `bytes` while `_run_wkhtmltopdf` wants `str`, so work on `bytes` headers and footers but `decode` before feeding to `_run_wkhtmltopdf`. Also removed support for non-minimal layouts: they seem completely unused and represent the vast majority of the complexity. Forward-Port-Of: odoo/enterprise#21293
PURPOSE To fix campaign rights for non marketing users in social. SPECIFICATION: Current: - if user don't have any rights of social and tries to access campaign, it gives warning that "You don't have rights of social". This is not correct as campaign can be accessed by any internal user. To be: - Give access to campaign. It should not matter if user has rights of social or not. And give proper rights accordingly. Task id: 241799 Forward-Port-Of: odoo/enterprise#21278 Forward-Port-
Original PR description
PURPOSE To fix campaign rights for non marketing users in social. SPECIFICATION: Current: - if user don't have any rights of social and tries to access campaign, it gives warning that "You don't have rights of social". This is not correct as campaign can be accessed by any internal user. To be: - Give access to campaign. It should not matter if user has rights of social or not. And give proper rights accordingly. Task id: 241799 Forward-Port-Of: odoo/enterprise#21278 Forward-Port-Of: odoo/enterprise#19487
In order to avoid any access issue with uploaded files, they should be attached to the corresponding template after being uploaded. Forward-Port-Of: odoo/enterprise#21089
Original PR description
In order to avoid any access issue with uploaded files, they should be attached to the corresponding template after being uploaded. Forward-Port-Of: odoo/enterprise#21089