Tuesday, September 27, 2022
24 changes · master
New functionality added to Odoo
This update helps accounting teams automate periodic VAT return closing every one to three months. It also prepares the required Belgian VAT declaration attachments, reducing manual work and improving compliance workflows.
Original PR description
task : 1911260
Enhancements to existing features
The Knowledge app gets a cleaner, more consistent sidebar with better spacing, resizing, and readability across screen sizes. Users and website visitors can resize the sidebar and keep their preferred width, while several article display, sharing, publishing, and creation issues are fixed for a smoother experience.
Original PR description
Purpose: ======= - Change the indentation of the articles names in the sidebar, so that articles of the same level (parent/1st child/2nd child, ...) are aligned - Make the size of the input match…
Resolved issues and error corrections
Fixes a timing issue that could prevent users from selecting date fields during invoice document extraction. It also prevents crashes when working with longer PDFs where some pages do not have extracted selection boxes, making the invoice review flow more stable.
Original PR description
There was a race condition between the handlers of the blur and click events for date boxes. If the blur is handled first, the boxes are removed from the DOM and the click fails as it happens on an element which isn't present. For the other field's boxes, there was no issue as the `mousedown` event was prevented and the field wasn't losing focus, letting the boxes mounted. For the date fields, the `mousedown` event wasn't prevented as it was used to hide the calendar dropdown for UI feedback. In this new version, the `mousedown` event is always prevented and a fake <kbd>ESC</kbd> keypress is triggered for date fields to hide the calendar. This also has the benefit that the boxes are still displayed after a click which is better for the user experience.
Miscellaneous changes
Due to the recent jsonb fields update, the product origin country name as retrieved by the sql intrastat query is in the form of a json string e.g. {'en_US': 'Algeria'} To correct this we use the ->> operator to parse the json in the field and retrieve the correctly translated value for the country name. Forward-Port-Of: odoo/enterprise#31830
Original PR description
Due to the recent jsonb fields update, the product origin country name as retrieved by the sql intrastat query is in the form of a json string e.g. {'en_US': 'Algeria'}
To correct this we use the ->> operator to parse the json in the field and retrieve the correctly translated value for the country name.
Forward-Port-Of: odoo/enterprise#31830Purpose: ======= - Change the indentation of the articles names in the sidebar, so that articles of the same level (parent/1st child/2nd child, ...) are aligned - Make the size of the input match exactly the length of the article name: previously, the input size was set using the size attribute, which approximates the length using the number of characters of the name and a mean character width value. This resulted in cropped names if there was a majority of large characters, or in a too large input if it was the opposite. The name was also cropped when entering the edition mode. The input size now matches exactly the article name, at any time - Change the range of the allowed width for the resizable sidebar: allows users to make it smaller than before, but not as wide (users could resize it to take the half of the screen width, which was too much considered it is a sidebar) - Change wording of messages shown when trying to move an article: adds the article name in the message, and the destination in the title to make it easier for the user - Make icons bigger in the options panel - Avoid changing the look of the sidebar when installing website: fixes the font-size in the sidebar so that the search bar, section headers and article names are not too large when installing website. - Fix broken logos in the permission panel: mimicks the behavior of the many2one_avatar widget by zooming in the image to fill the container, instead of stretching the image. - Fix hidden article names in the sidebar: shows the article names in the sidebar even when the window size is small. - Add resizable sidebar in frontend: allows visitors to resize the sidebar, the same way users can do it in backend, as visitors can also have small screens - Keep selected sidebar size: when an user changes the size of the sidebar, the selected width is stored in localStorage so that it can be set automatically when the user selects another article or reloads the page Task-2858661
Users can now change tags on each signature request at any time, without affecting other requests. The update also makes tag fields easier to identify and edit, including bulk tag editing from the request list.
Original PR description
Tags can be modified at any time for each sign request separately.
The website appointment area now has a tailored kanban view for content managers. This makes appointment types easier to browse and manage when working on website content, improving day-to-day usability without changing core appointment behavior.
Original PR description
**TO BE BACKPORTED IN 16.0** The goal of this commit is to tweak the 'appointment.type' kanban view and use it for website content manager. task-2889981
The Documents shortcut on the employee form is now shown first, making it easier for HR users to access employee documents quickly. This is a small usability improvement that helps streamline navigation in employee records.
Original PR description
task - 2984690
This fix prevents an error when users create an asset from a project’s Assets button. It ensures the asset form receives the right type information, allowing project-related asset creation to work reliably.
Original PR description
1. Go to Projects -> edit 2. Click on the "Assets" smart button 3. Try to create an asset -> Traceback This happens because the `asset_type` depends on the context and it is better to explicitly pass it to the view. task-2927428
Intrastat reports now show the product origin country name correctly instead of displaying raw translation data. This prevents confusing country labels and helps users read reporting information accurately.
Original PR description
Due to the recent jsonb fields update, the product origin country name as retrieved by the sql intrastat query is in the form of a json string e.g. {'en_US': 'Algeria'}
To correct this we use the ->> operator to parse the json in the field and retrieve the correctly translated value for the country name.The mobile control panel now displays and behaves correctly again by restoring missing page structure and styling. This helps users navigate and search smoothly on phones without layout issues.
Original PR description
This PR and its community counterpart add back some missing DOM attributes and CSS rules that made the mobile ControlPanel work. Community: https://github.com/odoo/odoo/pull/94975
1. Before the commit, the code was formatting an erroneous query. Indeed, a "case" by itself was in a group by which made a traceback with a syntax error. The reason was that adding a clause in the order by also adds it in the group by, but it is only compatible with a subset of values, which this CASE clause is not part of which made a traceback with a syntax error. 2. In the reconcile_widget.py, in the get_data_for_manuel_reconciliation query. The query needed to be adapted to new json fiel
Original PR description
1. Before the commit, the code was formatting an erroneous query. Indeed, a "case" by itself was in a group by which made a traceback with a syntax error. The reason was that adding a clause in the order by also adds it in the group by, but it is only compatible with a subset of values, which this CASE clause is not part of which made a traceback with a syntax error. 2. In the reconcile_widget.py, in the get_data_for_manuel_reconciliation query. The query needed to be adapted to new json field. (See:https://github.com/odoo/odoo/pull/97692) 3. In the community PR (see:https://github.com/odoo/odoo/pull/100788), i've removed the open_move function and replace the use by action_open_business_doc (previously action_open_business_doc_from_aml but renamed in the same community PR) task-id: 2988037 Forward-Port-Of: odoo/enterprise#31618
The following bugs have been introduced by the recent rework of the followup report: - groupby responsible not working since it's not stored (groupby removed, replaced by a 'assigned to me' filter) - followup status was not always properly computed (and it could lead to an ugly traceback) - printed letter layout a bit off: tables breaking and style not applied correctly Also improved the filters overall, by only including those relevant to followups Forward-Port-Of: odoo/enterprise#31616
Original PR description
The following bugs have been introduced by the recent rework of the followup report: - groupby responsible not working since it's not stored (groupby removed, replaced by a 'assigned to me' filter) - followup status was not always properly computed (and it could lead to an ugly traceback) - printed letter layout a bit off: tables breaking and style not applied correctly Also improved the filters overall, by only including those relevant to followups Forward-Port-Of: odoo/enterprise#31616
Forward-Port-Of: odoo/enterprise#31609
Original PR description
Forward-Port-Of: odoo/enterprise#31609
A few toggles for options in some reports were wrong and thus didn't work anymore. The impacted reports were: intrastat_reports, multicurrency_revaluation_report, and EC sales list. This will add the missing -bs in the xml to fix them. Forward-Port-Of: odoo/enterprise#31827
Original PR description
A few toggles for options in some reports were wrong and thus didn't work anymore. The impacted reports were: intrastat_reports, multicurrency_revaluation_report, and EC sales list. This will add the missing -bs in the xml to fix them. Forward-Port-Of: odoo/enterprise#31827
Community: https://github.com/odoo/odoo/pull/100678 Forward-Port-Of: odoo/enterprise#31844
Original PR description
Community: https://github.com/odoo/odoo/pull/100678 Forward-Port-Of: odoo/enterprise#31844
itsme is required to be used with the registered trademark (itsme®) all times, except when the itsme logo is already there. In this case, we should use plain itsme. This commit fixes this. task-2969605 Forward-Port-Of: odoo/enterprise#31814
Original PR description
itsme is required to be used with the registered trademark (itsme®) all times, except when the itsme logo is already there. In this case, we should use plain itsme. This commit fixes this. task-2969605 Forward-Port-Of: odoo/enterprise#31814
Make it possible to override both before and after execute actions on all view controllers using `useViewButtons`. This avoids having to change a value in the env to override the function being called when clicking on a button. Forward-Port-Of: odoo/enterprise#31715
Original PR description
Make it possible to override both before and after execute actions on all view controllers using `useViewButtons`. This avoids having to change a value in the env to override the function being called when clicking on a button. Forward-Port-Of: odoo/enterprise#31715
…le_subcontracted_product tour The `displayBarcodeLines` take a recordId as argument to check as a line id (stock.move.line or stock.quant) but the `recordId` given was always related main component record (`stock.picking` by example). Then `displayBarcodeLines` compare ids of different model (a RPC call) which doesn't make any sense. => Remove argument in `displayBarcodeLines` and `toggleBarcodeLines` (only use with the wrong model id) and all code related to it. Forward-Port-Of: odo
Original PR description
…le_subcontracted_product tour The `displayBarcodeLines` take a recordId as argument to check as a line id (stock.move.line or stock.quant) but the `recordId` given was always related main component record (`stock.picking` by example). Then `displayBarcodeLines` compare ids of different model (a RPC call) which doesn't make any sense. => Remove argument in `displayBarcodeLines` and `toggleBarcodeLines` (only use with the wrong model id) and all code related to it. Forward-Port-Of: odoo/enterprise#31518
This corrects the forward-port of 6908ac3 This was changed in 14+ with 9ecf88f and was overwritten by mistake Forward-Port-Of: odoo/enterprise#31792
Original PR description
This corrects the forward-port of 6908ac3 This was changed in 14+ with 9ecf88f and was overwritten by mistake Forward-Port-Of: odoo/enterprise#31792
This PR converts the helpdesk team dashboard and kanban view to owl. Task-2924239 Forward-Port-Of: odoo/enterprise#31685
Original PR description
This PR converts the helpdesk team dashboard and kanban view to owl. Task-2924239 Forward-Port-Of: odoo/enterprise#31685
Steps to reproduce: - create two products (A and B) with a barcode; - go in the barcode app; - scan products in non-consecutive order (A-B-A-B); Issue: Multiple lines will be created instead of two lines where all the quantities are merged. Cause: A condition to find the line of an already scanned product was not correct. Solution: Modify the condition. opw-2958923 Forward-Port-Of: odoo/enterprise#31745 Forward-Port-Of: odoo/enterprise#30747
Original PR description
Steps to reproduce:
- create two products (A and B) with a barcode;
- go in the barcode app;
- scan products in non-consecutive order (A-B-A-B);
Issue:
Multiple lines will be created instead of two lines where all the quantities are merged.
Cause:
A condition to find the line of an already scanned product was not correct.
Solution:
Modify the condition.
opw-2958923
Forward-Port-Of: odoo/enterprise#31745
Forward-Port-Of: odoo/enterprise#30747This PR is the following of that community PR: https://github.com/odoo/odoo/pull/100570 task id: 2822553 Forward-Port-Of: odoo/enterprise#31733
Original PR description
This PR is the following of that community PR: https://github.com/odoo/odoo/pull/100570 task id: 2822553 Forward-Port-Of: odoo/enterprise#31733
Reproduction: 1. Install Sale, Inventory, Website, and eCommerce. In the setting of Inventory, enable Delivery Methods, USPS Connector. In the setting of Website, enable Shipping Costs, USPS Connector. In shipping methods of Website, publish USPS Domestic Flat Rate Envelope. 2. Go to Website -> Go To Website -> shop -> add a deliverable product -> go to cart -> checkout 3. In the step Choose a delivery method, the price of USPS Domestic Flat Rate Envelope is not calculated. Reason: Wh
Original PR description
Reproduction: 1. Install Sale, Inventory, Website, and eCommerce. In the setting of Inventory, enable Delivery Methods, USPS Connector. In the setting of Website, enable Shipping Costs, USPS…
Reproduction: 1. Install Sale, Inventory, Website, and eCommerce. In the setting of Inventory, enable Delivery Methods, USPS Connector. In the setting of Website, enable Shipping Costs, USPS Connector. In shipping methods of Website, publish USPS Domestic Flat Rate Envelope. 2. Go to Website -> Go To Website -> shop -> add a deliverable product -> go to cart -> checkout 3. In the step Choose a delivery method, the price of USPS Domestic Flat Rate Envelope is not calculated. Reason: When compiling the delivery_usps.usps_price_request template, the parameter inherit_branding is not defined. If it’s not defined, the inherit_branding_auto attribute is used which is based on access rights. The inherit_branding is True in the current case. In saas-15.3, the template is rendered via ir.qweb. Before, the template is rendered via ir.ui.view. The access rights are different in saas-15.3, which will add additional attributes to the template. Fix: set the inherit_branding as False explicitly when rendering the template in usps_rate_request opw-2945583 Related PR: https://github.com/odoo-dev/odoo/commit/880954ebfc1106411b7f7a7d60aee05dfae60893 Forward-Port-Of: odoo/enterprise#31307
This reverts https://github.com/odoo/enterprise/pull/27400. The tax report should only have a 0 value that is visible in grid00 when in VAT Unit. In all other cases, this should stay invisible. Before 15.0, VAT Unit is not available in Odoo, so we revert the previous commit. In 15.0, we will be able to take VAT Unit into account. t-2898473 Forward-Port-Of: odoo/enterprise#31420 Forward-Port-Of: odoo/enterprise#30649
Original PR description
This reverts https://github.com/odoo/enterprise/pull/27400. The tax report should only have a 0 value that is visible in grid00 when in VAT Unit. In all other cases, this should stay invisible. Before 15.0, VAT Unit is not available in Odoo, so we revert the previous commit. In 15.0, we will be able to take VAT Unit into account. t-2898473 Forward-Port-Of: odoo/enterprise#31420 Forward-Port-Of: odoo/enterprise#30649