mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Description of the issue/feature this PR addresses:
The modules adds `{'invisible': [('parent_id', '!=', False)]}` attribute
to `banks` group on res.partner form view. The rationale for this,
according to a comment on the view itself is:
> ... there is a domain on the 'partner_id' field of res.partner.bank
(base module) which prevents the selection of a contact
However, the domain the comment refers to is
`['|', ('is_company', '=', True), ('parent_id', '=', False)]`
So, I think the domain for the group to be invisible should be
`[('parent_id', '!=', False), ('is_company', '=', False)]`. In addition,
a parent that is a company is always its own commercial partner. So we
should have access to its payment information.
Current behavior before PR:
Bank and mandates information is hidden when a partner is a company and
has a parent.
Desired behavior after PR is merged:
Banking information should be visible if a partner is a company.
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 ==================== Account Payment Mode ==================== This module adds a new object *account.payment.mode*, that is used to better classify and route incoming/outgoing payment orders with the banks. Configuration ============= To configure this module, you need to go to the menu *Invoicing/Accounting > Configuration > Management > Payment Modes*. Usage ===== This module doesn't add any feature, but it is used by several other modules. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot :target: https://runbot.odoo-community.org/runbot/173/11.0 Bug Tracker =========== Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-payment/issues>`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback. Credits ======= Contributors ------------ * Alexis de Lattre <alexis.delattre@akretion.com> Maintainer ---------- .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org This module is maintained by the OCA. OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. To contribute to this module, please visit https://odoo-community.org.