Search
Navigate
Branch
Friday, May 13, 2022
9 changes
New functionality added to Odoo
The email marketing app gains several new ready-made themes, including Coffeebreak, Textnews, Roadshow, and Graphic. This gives marketing teams more visual options to create polished campaigns faster without custom design work.
Original PR description
[task-2714386](https://www.odoo.com/web/#id=2714386&menu_id=4720&cids=1&action=327&model=project.task&view_type=form)
Enhancements to existing features
This update adjusts internal automated tests so they work with a newer way of loading the Odoo web client. It helps reduce risk and noise ahead of a larger Discuss app modernization, with no direct functional change expected for business users.
Original PR description
*: account_invoice_extract, documents. This PR prepares the ground for the one introducing the new environment in the discuss app. Indeed, the createWebClient helper will be used instead of createView/Widget thus the returned value won't be a Widget anymore but a DOM element. This change impacts they way the tests were written: JQuery functions have to be transformed to native JavaScript ones. In order to reduce the noise in the main PR, those changes are done now. task-2582313 community: https://github.com/odoo/odoo/pull/91290
Miscellaneous changes
This doesn't change anything from a technical point of view, but it helps to consistently assess whether a method is attached to a route or not, only by looking at the class' skeleton. See also: - https://github.com/odoo/odoo/pull/91238 Forward-Port-Of: odoo/enterprise#27310 Forward-Port-Of: odoo/enterprise#27272
Original PR description
This doesn't change anything from a technical point of view, but it helps to consistently assess whether a method is attached to a route or not, only by looking at the class' skeleton. See also: - https://github.com/odoo/odoo/pull/91238 Forward-Port-Of: odoo/enterprise#27310 Forward-Port-Of: odoo/enterprise#27272
The Documents spreadsheet component has been updated to a newer version. Users gain small usability improvements, including an easier way to clear formatting, while supporting better date handling behind the scenes.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/dcca995d [IMP] index: export toJsDate https://github.com/odoo/o-spreadsheet/commit/6d39f453 [IMP] topbar: adding clearformat option in format menu
The approvals app test setup was updated to use a more consistent mock server environment. This is an internal quality improvement that helps keep automated tests aligned with the broader platform and reduces the risk of test-related maintenance issues.
Original PR description
community: https://github.com/odoo/odoo/pull/90783
**Steps to follow** - Have unreconciled entries - Go to General Ledger - Filter -> Unreconciled - Select one, action -> Reconcile - Manual operations -> click on write-off date - Hit enter while there is calendar -> TypeError: value.isSame is not a function **Cause of the issue** The Writeoff Date field is declared as type char FieldDate._onKeyDown calls _parseValue and returns a string opw-2820370 https://www.odoo.com/web#view_type=form&model=project.task&i
Original PR description
**Steps to follow** - Have unreconciled entries - Go to General Ledger - Filter -> Unreconciled - Select one, action -> Reconcile - Manual operations -> click on write-off date - Hit enter while there is calendar -> TypeError: value.isSame is not a function **Cause of the issue** The Writeoff Date field is declared as type char FieldDate._onKeyDown calls _parseValue and returns a string opw-2820370 https://www.odoo.com/web#view_type=form&model=project.task&id=2820370 Forward-Port-Of: odoo/enterprise#27285 Forward-Port-Of: odoo/enterprise#27206
**Steps to follow** - Go to Accounting > Journal Entries > any line - Upload 2 PDFs in the chatter - Use the arrows to go to the next journal entry - Switch back to the previous one using the previous arrow - Use the next arrow in the PDF viewer to switch to the next PDF -> The home page is loaded **Cause of the issue** The previous Attachment viewer is reused https://github.com/odoo/enterprise/blob/3a0506ccd49bb5db92535b20436c8c3055e1ff07/mail_enterprise/static/src/w
Original PR description
**Steps to follow** - Go to Accounting > Journal Entries > any line - Upload 2 PDFs in the chatter - Use the arrows to go to the next journal entry - Switch back to the previous one using the previous arrow - Use the next arrow in the PDF viewer to switch to the next PDF -> The home page is loaded **Cause of the issue** The previous Attachment viewer is reused https://github.com/odoo/enterprise/blob/3a0506ccd49bb5db92535b20436c8c3055e1ff07/mail_enterprise/static/src/widgets/form_renderer/form_renderer.js#L149-L177 -> The widget events are registered on the wrong element -> The button is a `<a href="#">` element -> The home page is loaded **Solution** Register the events on the correct widget opw-2803266 Forward-Port-Of: odoo/enterprise#27213 Forward-Port-Of: odoo/enterprise#25785
Wrong URLs fixed Forward-Port-Of: odoo/enterprise#27185
Original PR description
Wrong URLs fixed Forward-Port-Of: odoo/enterprise#27185
Currently, duplicating an asset can raise an error when saving it, as the asset type is not set. Also, if an asset is opened from the Depreciation schedule view, there is no asset type in the context. The asset type is computed from the context and thus in this case the asset cannot be saved. Should be: - Copy the asset type when duplicating to avoid the error. - Add the asset type in the context when opening an asset from the Depreciation Schedule view. Task# 2781018 Forward-Port-Of: o
Original PR description
Currently, duplicating an asset can raise an error when saving it, as the asset type is not set. Also, if an asset is opened from the Depreciation schedule view, there is no asset type in the context. The asset type is computed from the context and thus in this case the asset cannot be saved. Should be: - Copy the asset type when duplicating to avoid the error. - Add the asset type in the context when opening an asset from the Depreciation Schedule view. Task# 2781018 Forward-Port-Of: odoo/enterprise#27242 Forward-Port-Of: odoo/enterprise#25031