Daily updates from Odoo
Navigate
Branch
Wednesday, June 2, 2021
13 changes
New functionality added to Odoo
Users can now download Odoo spreadsheets in an Excel-compatible .xlsx format, making it easier to share and work with files outside Odoo. The update also ensures month and quarter filters keep a default year, preventing unclear filter results in spreadsheets.
Users can now download Odoo spreadsheets as Excel-compatible .xlsx files, making it easier to share and work with spreadsheet data outside Odoo. The update also improves date filter handling and cleans sheet names during export to avoid Excel compatibility issues.
Original PR description
Odoo task ID: [2291419](https://www.odoo.com/web#action=327&cids=1&id=2291419&menu_id=4720&model=project.task&view_type=form)
Enhancements to existing features
Companies using the same Odoo database can now manage social media accounts, posts, and streams without automatically sharing them across the whole organization. The update also prevents duplicate social accounts by reactivating an archived account when the same page is connected again, improving account control and reducing confusion.
Original PR description
Purpose ======= Allow multiple companies to use Social on the same database. That way each company does not necessarily share its social accounts with others companies. Specifications ============== All the social records (post, account...) belong to one company or none. For the social post, if one company is set, we can only select account in the same company or without a company. If no company is set on the post, we can select any social accounts. When creating accounts, check there is no de-activated account before creating a new one. Especially in multi company environment this is important to check. Links ===== Task ID-2415987
Odoo now chooses the most appropriate web address when generating links, instead of relying on one fixed system setting. This improves links shared from website-aware records and across apps such as documents, helpdesk, subscriptions, signing, delivery, HR, IoT, and social integrations.
Original PR description
Community commit introduce an helper to get the most suited URL for a record instead of always using the ICP, which is not correct in a website context. This commit replaces calls to ICP by the helper method. Community: https://github.com/odoo/odoo/pull/68201 Enterprise: https://github.com/odoo/enterprise/pull/17538 Upgrade: https://github.com/odoo/upgrade/pull/2372 task-2476101
Several Odoo apps now use the updated avatar naming for user, contact, and employee profile images. This keeps Enterprise modules aligned with the core platform change and helps prevent display or compatibility issues wherever profile pictures appear.
Original PR description
In odoo/odoo#69819 a new mixin is created and used by users, partners and employees. This caused us to rename image_xxxx fields to avatar_xxxx. reference: odoo/odoo#69819 task-2404630
Tax reports can now be prepared for defined tax units, grouping companies that file together with tax authorities. This makes multi-company tax reporting more controlled and aligned with country-specific filing requirements, while limiting multi-company reporting to approved tax unit setups.
Original PR description
To handle multicompany in the tax report, it is now possible to define tax units. A tax unit is a group of companies for which the tax report is submitted together to the state. At most one tax unit can be defined per country. When there is one available, an option is available on the tax report to enable of of its companies and display its content. When opening the report with all the companies of the unit in self.env.companies, the options is activated by default. Tax reports now only allow multicompany through the usage of tax units. Task: 2463889
Resolved issues and error corrections
This fixes how Chilean electronic document signature HTML is prepared so signatures are generated with the correct content. It helps prevent incorrect electronic documents, especially delivery guides, caused by recent HTML escaping changes.
Original PR description
Edition of the html was wrong since https://github.com/odoo/odoo/commit/01875541b1a8131cb0c5459f18670e9a97713135
Code cleanup and technical improvements
This change reorganizes batch payment reconciliation assets and tests so they live under the accountant-focused batch payment module. It keeps functionality aligned with the correct app structure, making future maintenance safer without changing day-to-day user workflows.
Original PR description
Should have been done in https://github.com/odoo/enterprise/commit/726879a6ec5eb5775caec4a0461ae5c1795c3d59
Miscellaneous changes
Steps: - Install Accounting - Go to Accounting / Reporting / Management / Budgets Analysis - Switch to Pivot view - Click Insert in Spreadsheet - Confirm - Try to autofill the Total row header Bug: Traceback here: https://github.com/odoo/enterprise/blob/72541b4904adc028e4700ff9e5be93e90ed7907e/documents_spreadsheet/static/src/js/o-spreadsheet/plugins/pivot_plugin.js#L1081 cols is undefined Explanation: `cols` is undefined because the Total header autofill goes through `_autofill
Original PR description
Steps: - Install Accounting - Go to Accounting / Reporting / Management / Budgets Analysis - Switch to Pivot view - Click Insert in Spreadsheet - Confirm - Try to autofill the Total row header Bug: Traceback here: https://github.com/odoo/enterprise/blob/72541b4904adc028e4700ff9e5be93e90ed7907e/documents_spreadsheet/static/src/js/o-spreadsheet/plugins/pivot_plugin.js#L1081 cols is undefined Explanation: `cols` is undefined because the Total header autofill goes through `_autofillPivotColHeader` while autofilling a row header. Total headers don't have arguments. This makes them fit neither in row headers nor in column headers. This commit uses the direction of the autofill to know if the Total header is a row or a column header. opw:2522672 Forward-Port-Of: odoo/enterprise#18672 Forward-Port-Of: odoo/enterprise#18636
* `validate_session` was changing the signature of the original function * The assets were fetching files from another module. Forward-Port-Of: odoo/enterprise#18610
Original PR description
* `validate_session` was changing the signature of the original function * The assets were fetching files from another module. Forward-Port-Of: odoo/enterprise#18610
COM PR: https://github.com/odoo/odoo/pull/71536 task-2494916 Forward-Port-Of: odoo/enterprise#18654
Original PR description
COM PR: https://github.com/odoo/odoo/pull/71536 task-2494916 Forward-Port-Of: odoo/enterprise#18654
Description of the issue/feature this PR addresses: 1: When the tax_type is set to 'Exento', there was an error in the CFDI generated by Odoo as the case was explicitly skipped after the accounting rework between v13 and v14. 2: Additional conditions on displaying traslados and impuestos lines were missing Desired behavior after PR is merged: The same behaviour as in v13, tax exemption is handled and the fields are set to false when it is applicable. Missing conditions were added back.
Original PR description
Description of the issue/feature this PR addresses: 1: When the tax_type is set to 'Exento', there was an error in the CFDI generated by Odoo as the case was explicitly skipped after the accounting rework between v13 and v14. 2: Additional conditions on displaying traslados and impuestos lines were missing Desired behavior after PR is merged: The same behaviour as in v13, tax exemption is handled and the fields are set to false when it is applicable. Missing conditions were added back. OPW: 2503843 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/enterprise#18542 Forward-Port-Of: odoo/enterprise#18261
This commit updates the twitter route URL used to fetch the tweet HTML. Indeed, the old "oembed" route is deprecated and will be removed completely soon (November 23, 2021). More information here: https://twittercommunity.com/t/consolidating-the-oembed-functionality/154690 In order to use the updated oembed route, we have to pass an additional author_id parameter, already contained in the retrieved tweet information. This implies a modification of the method signature, so the old rout
Original PR description
This commit updates the twitter route URL used to fetch the tweet HTML. Indeed, the old "oembed" route is deprecated and will be removed completely soon (November 23, 2021). More information here: https://twittercommunity.com/t/consolidating-the-oembed-functionality/154690 In order to use the updated oembed route, we have to pass an additional author_id parameter, already contained in the retrieved tweet information. This implies a modification of the method signature, so the old route was kept for retro-compatibility in case the parameter is missing. Task-2544931 Forward-Port-Of: odoo/enterprise#18641 Forward-Port-Of: odoo/enterprise#18593