Thursday, January 9, 2020
6 changes · master
New functionality added to Odoo
This update adds a new user interface library foundation and supporting tools that make Odoo’s web screens easier to build, test, and maintain. It also introduces reusable dialog and file upload components while removing obsolete mail announcement code, helping future interface improvements ship more consistently.
Original PR description
This PR has several purposes: - add the owl library to Odoo; - defines two JavaScript modules web.env and web.test_env that should make easier to work with and test owl components.
Enhancements to existing features
Website editor option controls can now automatically enable related controls when selected or previewed. This makes editing behavior more consistent and reduces the chance that users need to manually adjust multiple related settings.
This change avoids recalculating values that Odoo has already computed and temporarily stored during record creation. It can significantly speed up bulk operations, such as creating many sales order lines, without changing user-facing behavior.
Original PR description
Description of the issue/feature this PR addresses: Unnecessary recomputation of values already present in cache, leading to a substantial overhead in some use cases (e.g. creation of multiple sale.order.line records). Current behavior before PR: Computed field values that have not yet been written to the database may be recomputed even if the correct result for that record is already present in the cache. Desired behavior after PR is merged: Computed field values that have not yet been written to the database are recomputed only if the correct value for that record is not already present in the cache. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Website editors can now set an explicit default value for supported form fields instead of losing input changes during editing. This makes it easier to prepare pre-filled forms for visitors while keeping file upload fields unchanged.
Original PR description
Description of the issue/feature this PR addresses: Without this patch, changes done in any of the inputs are not saved. Now, that behavior remains the same, but a new explicit option is added to each supported input (all except `type="file"`) to set a custom default value.  -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr @Tecnativa
SEPA batch payments can now be marked for batch booking, so all payments in a batch appear as one combined line on the bank statement. This makes bank reconciliation easier and reduces manual matching work for finance teams.
Original PR description
[IMP] account_sepa_direct_debit, account_batch_payment: put payment_method_code field in account_batch_payment (still invisible), so that submodules needing it don't have to add it every time [IMP] account_sepa: add a checkbox on batch payments to enable batch booking (just like for direct debit) With batch booking enabled, all the payments of the batch will be grouped in a single line on the bank statement, easing reconciliation.
Resolved issues and error corrections
This fix prevents Odoo from recalculating certain stored editable fields when their values are already present in the database. It helps preserve existing data and avoids unnecessary processing during normal operations.
Original PR description
Master try of https://github.com/odoo/odoo/pull/42312 Todo cherry-pick rco-odoo commit when accounting is fixed :D (to have the tests and authorship) -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr