Monday, December 16, 2019
8 changes · master
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 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
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
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