Daily updates from Odoo
Monday, December 16, 2019
13 changes
Enhancements to existing features
This update adds consistent internal names to many page sections across Odoo screens. It does not change what users see, but it makes future customizations and upgrades safer and easier for implementation teams.
Original PR description
Description of the issue/feature this PR addresses: Easier xpath expressions Current behavior before PR: Quite some pages have no `name` and no `id` set on the page making it rather annoying/unsafe to xpath into. Desired behavior after PR is merged: All pages have a `name` element so developers can do easy and safe xpath expressions 🎉 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update makes the journal selection on account payments more consistent by removing a dynamic filtering rule. It should make payment entry behavior easier to understand and maintain, with limited impact for day-to-day users.
Original PR description
Old crap should be more coherent, though by and large it's still crap. Task 2115472 Split from #40957
Payment forms now better keep the selected payment method aligned with the chosen journal. If the current method is no longer valid after changing the journal, Odoo automatically switches to an appropriate default or available method, reducing incorrect payment setup.
Original PR description
Task 2115472 Split from #40957
Payment forms now use a simpler setup for choosing partner bank accounts by removing an unused dynamic filter hook from the standard screen. This reduces unnecessary complexity in the accounting workflow while preserving customization options for implementations that override the behavior.
Original PR description
`possible_bank_partner_ids` is an override hook, it's not useful in and of itself. Task 2115472 Split from #40957
This update simplifies how account options are determined on accounting move lines by replacing unnecessary dynamic filtering with a static setup. It should make the accounting screens easier to maintain while preserving the intended choices for users.
Original PR description
The dynamic domain really seems wholly unnecessary (though the static one does require adding a field to a bunch of views) Task 2115472 Split from #40957
The register payment wizard now uses the invoices already available to it instead of re-reading the same records from the screen context. This makes journal selection more consistent with company defaults and reduces confusing behavior when registering payments.
Original PR description
It seems very strange that we'd want to use active_ids as invoices to work with when when we already have invoices available, and these are browsed / converted from the active_ids if they weren't provided explicitly. There's also an odd divergence between the filtering on the journal's company here and in the default_get too: in the default_get we get a journal in the user's company but then we only allow selecting a journal from the invoices' company... Task 2115472 Split from #40957
The website editor now has a cleaner way to decide which options and controls appear in the left panel. This helps reduce visual flicker and makes the editing experience more consistent while giving future improvements a simpler foundation.
Partner selection in accounting now uses the user's currently active company directly. This makes company-specific accounting behavior clearer and more reliable in multi-company setups, with minimal visible change for users.
Original PR description
Pretty straightforward so long as you know `current_company_id` is the currently active company for the user, which is exactly what we need. Task 2115472 Split from #40957
Batch payment screens were updated to stay compatible with changes in how payment methods are filtered. This helps ensure users continue to see the right payment method choices when creating or managing batch payments.
Original PR description
Cf odoo/odoo#41868
This update simplifies how approval request filters are defined in the Approvals app. It reduces reliance on dynamic filtering logic, making the approval process more predictable and easier to maintain without changing the core user workflow.
Original PR description
Task 2115472
This update adjusts how bank accounts are selected when preparing batch and SEPA payments. It supports a related change in the main accounting app, helping keep payment workflows consistent and reducing selection issues for users.
Original PR description
Cf odoo/odoo#41872
The Documents app now makes lock status easier to understand. Users can no longer try to unlock a document locked by someone else from the inspector, while list and kanban views use a simpler, consistent lock icon.
Original PR description
In the document inspector, the lock button is now disabled if the document is locked by someone else. In the Kanban and List view, the icon distinction between a document locked by someone else or the current user has been removed. Task: #2155063
Batch payment screens were adjusted to stay aligned with changes in how payment journals are selected. This helps keep payment processing workflows consistent and avoids confusion when choosing journals for batch payments.
Original PR description
Cf odoo/odoo#41873