Thursday, April 2, 2020
2 changes · master
Enhancements to existing features
This update adds a shared way for Odoo to check whether one model belongs under another model. It helps features such as messaging, mailing, portal sharing, and SMS composition make these checks more consistently and reliably behind the scenes.
Original PR description
**Description of the issue/feature this PR addresses:** Adds a method to check if a model is a submodel of another model. May be useful for checking mixings. 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-
The bank journal form now hides bank account detail fields until a bank account is selected. This prevents users from entering information that would disappear after saving, making the form clearer and reducing confusion.
Original PR description
Showing these fields does not actually make sense when bank_account_id isn't set as well, since setting them and saving will result in them losing their value (as they're actually related on an empty field). We need to hide them while bank_account_id is not set.