Thursday, September 14, 2023
3 changes · master
Resolved issues and error corrections
Lead generation industry options have been corrected to match the external provider’s search terms. This helps users get relevant leads for industries that previously returned no results, improving the usefulness of lead mining searches.
Original PR description
The values used in the industry to obtain lead generations did not align with those of our provider. This posed a problem, as it meant that some queries inevitably returned zero leads. Description of the issue/feature this PR addresses: When a lead mining request was made using the lead generation tool, several industry categories returned no results when selected, even for countries such as the USA. Current behavior before PR: The user's query returned industry ids that did not match up correctly with the keywords used in the lead search. Desired behavior after PR is merged: Now users will be able to choose their industry from a revised list. In addition, the query sent will now contain the name of the industry rather than an id. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where users could no longer switch how products are displayed in the Point of Sale screen after a recent internal update. Restoring this option helps cashiers use their preferred product layout and keeps the checkout workflow consistent.
Original PR description
After the bootstrap refactoring introduced in this commit cc349515a4923874067705267bbaa383276556e6. The switch product view wasn't working anymore. This commit reintroduce the logic behind the switch product view option. Task-3500621
Fixed an issue where customers using self-order could sometimes miss the pay button after placing an order. This ensures a smoother checkout experience and adds tests to prevent the problem from returning.
Original PR description
*: pos_online_payment_self_order
Since https://github.com/odoo/odoo/commit/605943b5eaafe7e9224f0e7fb4fbdd020102c7a5, the pay button is not always displayed in the self-order UI after clicking on the "Order" button.
The issue is due to the selected_attributes value received from the server, that can be "false", while the JS code of self-order UI is designed with "{}" as the empty/null value.
When the local order of the self-order UI is updated with the data from the server, the false value was saved instead of the {}, resulting in the line being considered as "modified" according to the isChange method which uses JSON.stringify for comparing changes.
The fix consists in correctly updating the local order selected_attributes value when receiving data from the server.
This commits adds some tests for the pay after meal self-order mode, to check that the pay button is visible.
task-id: 3489173