Thursday, May 4, 2023
18 changes · master
Enhancements to existing features
Knowledge articles now use updated side panels for discussions and article properties, keeping the same familiar behavior while aligning them with the newer interface. Users can manage article properties more deliberately from within the panel, making the workspace clearer and reducing accidental actions.
Original PR description
This commit adds 2 new widgets to the knowledge.article view: the ChatterPanel and the PropertiesPanel. These widgets are OWL versions of the ones already present in the original view meaning that their behavior is the same as before and the style is similar. Since these widgets aren't comprised inside of the topbar we needed to add listeners on the corresponding buttons in order for them to apply the wanted behavior. For the PropertiesPanel we are using the Component PropertiesField, in order to modify or add properties to each article. For the ChatterPanel we are using the ChatterContainer Component and we feed it the ThreadModel `knowledge.article` and the threadId is dependant on the article`s ID. Upgrade: odoo/upgrade#4584 task-3096030
Knowledge users can now organize article items in true kanban boards with configurable stages such as New, Ongoing, and Done. This makes tracking work or content progress easier directly inside Knowledge, with options to manage stages and create items quickly.
Original PR description
Purpose ======= Allow users to have a real kanban with stages Specifications ============== Copy the implementation done for projects - Add a menu item under Configuration - Users can edit/add/remove stages (same right on stages than on the article that owns them) - By default when we insert a kanban, create 3 stages: New, Ongoing, Done: create stages only at /kanban call, if not stage already - On apply min height to kanban views that use group by to ease redability - Add Items Cards command (kanban not grouped by stage) - add quick create to /kanban (not to /cards) Task-3283046
Resolved issues and error corrections
This fix adjusts the mail chatter test setup so edited messages keep the expected layout when their styling changes. It helps ensure message lists continue to scroll correctly, reducing the risk of frustrating navigation issues in customer communications.
Original PR description
Lack of "p" tag in the message body in chatter test changes the size of message and its position relative to the view. Task-2664848 Related to this [PR](https://github.com/odoo/odoo/pull/117896)
Features or functions removed from Odoo
Odoo’s Mexican electronic invoicing support now focuses on the legally required CFDI 4.0 format, removing the obsolete CFDI 3.3 version. Related CFDI 4.0 add-on modules have been consolidated, simplifying setup and maintenance for Mexican localization users.
Original PR description
Legal requirement and support for Mexican EDI a.k.a. CFDI 3.3 is removed as of the 1th April 2023 and replaced by CFDI 4.0. So, in this commit, - cfdi 3.3 is removed - the modules "_40" are merged so we have 4 modules less (l10n_mx_edi_40, l10n_mx_edi_extended, l10n_mx_edi_stock_40, l10n_mx_edi_stock_extended_40) task-2957927
Miscellaneous changes
If applied, this commit will solve the issue of the deleted expense product while creating the sample receipt. The database should be without demo data or shouldn't have any record of expenses. Steps to produce: - Delete the 'Expenses' product from Configuration > Expense Products. - Go to the 'All My Expenses' menu. - Click on the 'Try Sample Receipt' button and click on any receipt. - Error will be generated. sentry - 4115280369 see - https://tinyurl.com/2cq3fcug Forward-Port-Of: o
Original PR description
If applied, this commit will solve the issue of the deleted expense product while creating the sample receipt. The database should be without demo data or shouldn't have any record of expenses. Steps to produce: - Delete the 'Expenses' product from Configuration > Expense Products. - Go to the 'All My Expenses' menu. - Click on the 'Try Sample Receipt' button and click on any receipt. - Error will be generated. sentry - 4115280369 see - https://tinyurl.com/2cq3fcug Forward-Port-Of: odoo/enterprise#40556 Forward-Port-Of: odoo/enterprise#40174
Fixed an issue where embedded external records or links added to Knowledge articles could be lost when users clicked into them before the article was saved. The article now correctly detects these edits and saves them, improving reliability for Knowledge and Helpdesk content updates.
Original PR description
This commit fixes a bug where external insertion inside an article would not be saved if you clicked on a record inside the view or opened the link. This is caused because the article was not flagged as dirty when opening either a record or a link which does not trigger a save by the field html. Now when we are finished inserting we are asking the record to check for changes which will flag the field as dirty and will trigger the save mechanism on opening an external record/link. We also adapted one of the tour in website_helpdesk_knowledge that test cross module features or knowledge to take this behavior into account. task-3292309
- Create an asset with duration 0 years - Confirm it - Dispose it => Traceback because we're dividing by the lifetime (so 0) opw-3288323 Forward-Port-Of: odoo/enterprise#40649
Original PR description
- Create an asset with duration 0 years - Confirm it - Dispose it => Traceback because we're dividing by the lifetime (so 0) opw-3288323 Forward-Port-Of: odoo/enterprise#40649
The `_get_unit_label` is called on self, instead of every `record`. And this method requires a singleton, so it raises an error with two temporal lines. Forward-Port-Of: odoo/enterprise#40628
Original PR description
The `_get_unit_label` is called on self, instead of every `record`. And this method requires a singleton, so it raises an error with two temporal lines. Forward-Port-Of: odoo/enterprise#40628
Reaching the last step of the onboarding screen would cycle back to the first step instead of going to the next screen. task-3299576 Forward-Port-Of: odoo/enterprise#40665
Original PR description
Reaching the last step of the onboarding screen would cycle back to the first step instead of going to the next screen. task-3299576 Forward-Port-Of: odoo/enterprise#40665
There was a mistake in the creation of the validation dictionary that lead to incomplete data being sent for validation. The parameters of the validation request will now be checked in the tests to avoid similar issues in the future. Forward-Port-Of: odoo/enterprise#40651 Forward-Port-Of: odoo/enterprise#40617
Original PR description
There was a mistake in the creation of the validation dictionary that lead to incomplete data being sent for validation. The parameters of the validation request will now be checked in the tests to avoid similar issues in the future. Forward-Port-Of: odoo/enterprise#40651 Forward-Port-Of: odoo/enterprise#40617
Before this commit, the mobile search view was sent to the end of the dom (t-portal) and so was on top of everything even the dialog that was opened after it. Now, the mobile search view is open in a dialog and the depth level between it and other dialogs is fixed. task id: 3273035 Forward-Port-Of: odoo/enterprise#40538 Forward-Port-Of: odoo/enterprise#40255
Original PR description
Before this commit, the mobile search view was sent to the end of the dom (t-portal) and so was on top of everything even the dialog that was opened after it. Now, the mobile search view is open in a dialog and the depth level between it and other dialogs is fixed. task id: 3273035 Forward-Port-Of: odoo/enterprise#40538 Forward-Port-Of: odoo/enterprise#40255
Steps to reproduce ------------------ 1. Install Project and Documents 2. Create a Project with the "Internal" visibility 3. Create a task in this project, and make an internal user that does not have Project > Administrator access rights follower of this task 4. Log in as that user, and access the task using the link 5. Click on the "Documents" stat button This will generate an access rights error. This PR fixes the error by adding a sudo when trying to access the project of the tas
Original PR description
Steps to reproduce ------------------ 1. Install Project and Documents 2. Create a Project with the "Internal" visibility 3. Create a task in this project, and make an internal user that does not have Project > Administrator access rights follower of this task 4. Log in as that user, and access the task using the link 5. Click on the "Documents" stat button This will generate an access rights error. This PR fixes the error by adding a sudo when trying to access the project of the task. --- Task-3244381 Forward-Port-Of: odoo/enterprise#38555
Forward-Port-Of: odoo/enterprise#40650
Original PR description
Forward-Port-Of: odoo/enterprise#40650
Forward-Port-Of: odoo/enterprise#39768
Original PR description
Forward-Port-Of: odoo/enterprise#39768
This trace back raises when required fields are not as a column in the imported journal file. Steps to Produce : * Install accounting module * open res_config_settings/import/import journal items * upload a .xlsx extension file and test the file * If 'journal_id' is in the file,then trace back raises By applying these changes will resolve this issue. See:-  Sentry:- 4062496694 Forward-Port-Of: odoo/enterprise#40297 Forward-Port-Of: odoo/enterprise#39633
- Add HSBC Autopay APC file exporting feature by the following documentation - https://www.business.hsbc.com.hk/-/media/library/business-hk/pdfs/en/autopay-new-hkmri-file-specifications.pdf task-3195612 Forward-Port-Of: odoo/enterprise#40438 Forward-Port-Of: odoo/enterprise#39177
Original PR description
- Add HSBC Autopay APC file exporting feature by the following documentation - https://www.business.hsbc.com.hk/-/media/library/business-hk/pdfs/en/autopay-new-hkmri-file-specifications.pdf task-3195612 Forward-Port-Of: odoo/enterprise#40438 Forward-Port-Of: odoo/enterprise#39177
see odoo/odoo#117936 Forward-Port-Of: odoo/enterprise#40424
Original PR description
see odoo/odoo#117936 Forward-Port-Of: odoo/enterprise#40424
Remove lunch hours from work intervals so that overtime is not calculated when it's not due tests adapted to take into account lunch period task 3217799 see odoo/odoo#119165 Forward-Port-Of: odoo/enterprise#40647
Original PR description
Remove lunch hours from work intervals so that overtime is not calculated when it's not due tests adapted to take into account lunch period task 3217799 see odoo/odoo#119165 Forward-Port-Of: odoo/enterprise#40647