Tuesday, March 14, 2023
8 changes · master
Enhancements to existing features
SQL queries shown in logs and tests are now formatted across multiple lines, making them easier to read and troubleshoot. This is an optional developer-facing improvement that helps speed up debugging without changing normal business workflows.
Original PR description
sqlparse is a python library that can be used to pretty-format SQL
queries. We use it to pretty-print queries for `--log-sql` and in
tests for `AssertQueries`. The library is optional and will emit a
warning upon being used but not installed (as a way to advertize its
existence to our fellow developers).
It can be installed via apt `python3-sqlparse` or via pip `sqlparse`.
As an example, the following query logged on a single line:
SELECT "ir_module_module"."id" FROM "ir_module_module" WHERE ("ir_module_module"."state" = 'installed') ORDER BY "ir_module_module"."name"
becomes:
SELECT "ir_module_module"."id"
FROM "ir_module_module"
WHERE ("ir_module_module"."state" = 'installed')
ORDER BY "ir_module_module"."name"The web autocomplete component now supports focusing its input automatically and adding a custom style class to its container. This gives Odoo screens more flexibility to create smoother, more polished user interactions without changing core behavior.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update makes internal test data for Odoo's messaging-related features more consistent ahead of future Discuss improvements. It also adjusts an attachment test so it can run reliably on larger screens, helping reduce maintenance risk without changing day-to-day user behavior.
Original PR description
In preparation of discuss refactoring. Extracted from https://github.com/odoo/odoo/pull/110188 to ease its diff a little.
The CRM lead scoring settings modal now makes the date field visibly underlined so users can more easily recognize it as editable. The confirmation button is also renamed to “Update,” making the action clearer before applying changes.
Original PR description
Make the date field always underlined in the PLS modal in the settings, to indicate that it is editable and not a technical constraint. Task-3193113
This update removes extra spaces before punctuation marks such as colons, semicolons, question marks, and exclamation marks across several Odoo areas. It improves the professionalism and consistency of English-language text shown in the product, demos, and related messages.
Original PR description
According to Wiktionary, *French spacing* is "the archaic practice (though still current in French) of inserting a space around colons, semicolons, question marks, and exclamation marks". This is not standard practice in English and most languages of the world. The purpose of this commit is to start purging the code from this typo, as it may reflect poorly on the software for some people. Enterprise: https://github.com/odoo/enterprise/pull/37853
This update lets Odoo screens show dropdown controls in a disabled state when an action should not be available. It helps create clearer interfaces and prevents users from trying unavailable options.
Original PR description
With this commit, we can now customize the Dropdown component to make it disabled. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The AvaTax settings page now includes a checkbox to control whether related options are shown. This makes the configuration screen clearer without affecting whether the AvaTax module is installed.
Original PR description
Before this PR, the avatax setting was missing a checkbox on the left, the goal of the checkbox is not to uninstall the module but will be use only for the display or not of the options below. task-id: 3226604
This update removes unnecessary spaces before punctuation such as colons, semicolons, question marks, and exclamation marks across many Odoo Enterprise apps. The change improves the polish and professionalism of English text shown in the product without altering business workflows.
Original PR description
According to Wiktionary, *French spacing* is "the archaic practice (though still current in French) of inserting a space around colons, semicolons, question marks, and exclamation marks". This is not…
According to Wiktionary, *French spacing* is "the archaic practice (though still current in French) of inserting a space around colons, semicolons, question marks, and exclamation marks". This is not standard practice in English and most languages of the world. The purpose of this commit is to start purging the code from this typo, as it may reflect poorly on the software for some people. Community: https://github.com/odoo/odoo/pull/114533 \* = account_asset, account_auto_transfer, account_bank_statement_import, account_consolidation, account_sepa_direct_debit, appointment, documents_l10n_be_hr_payroll, event_barcode, event_social, helpdesk, hr_appraisal, hr_appraisal_survey, hr_contract_salary, hr_payroll, hr_payroll_account, hr_referral, industry_fsm, iot, knowledge, l10n_be_hr_payroll, l10n_be_reports, l10n_de_pos_cert, l10n_es_reports, l10n_ke_hr_payroll, l10n_ma_hr_payroll, l10n_mx_edi_website_sale, marketing_automation, mrp_mps, mrp_plm, mrp_workorder, mrp_workorder_hr, pos_hr_mobile, sale_planning, sale_purchase_inter_company_rules, sale_renting, sale_stock_renting, sale_subscription, sign, social, spreadsheet_edition, stock_barcode, stock_barcode_picking_batch, timesheet_grid, voip, web_gantt, web_studio