Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] account_payment_mode #1367

Open
wants to merge 110 commits into
base: 18.0
Choose a base branch
from

Conversation

BertVGroenendael
Copy link

No description provided.

alexis-via and others added 30 commits October 15, 2024 11:16
…lot of improvements) during the Sorrento Code sprint 2016

Improvements include:

- full re-organisation of modules and big re-organisation of the code
- simplification of the code related to the fact that support for direct debit is now in t
he base module, not added by an optional module account_direct_debit (module was removed)
- new design of the wizard to select move lines to pay
- support for non-SEPA file transfer-
- support for German direct debit SEPA files (fixes bug OCA#129)
- remove workflow of payment.order

- Finalise the wizard of selection of move lines to pay

  Add button "Add to payment/debit order" on invoice form view
  Started to integrate payment transfer in account_payment_order (not finished at all though)
  Various fixes/changes/improvements/...

- Update and re-enable demo data
- Move field bank_account_required from module account_payment_partner to account_payment_mode

  Make the mandate a required field on payment line when the payment method has mandate_required=True
  Make the bank account a required field on payment line when the payment method has bank_account_required=True

- Enable the payment methods by default on bank journals (including existing bank journals via post_install scripts)
Port almost all modules to v10

* Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug OCA#300)
* Fix payment method onchange with multicompany (OCA#374)
* Add relational inverse field for payment.mode on payment.method
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
Currently translated at 100,0% (51 of 51 strings)

Translation: bank-payment-11.0/bank-payment-11.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-11-0/bank-payment-11-0-account_payment_mode/es/
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.
Currently translated at 49.1% (27 of 55 strings)

Translation: bank-payment-12.0/bank-payment-12.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_mode/ca/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-13.0/bank-payment-13.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_mode/
OCA-git-bot and others added 23 commits October 15, 2024 11:16
Currently translated at 64.5% (31 of 48 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_mode/it/
Currently translated at 100.0% (48 of 48 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_mode/fr/
Currently translated at 64.5% (31 of 48 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_mode/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_mode/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/it/
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/it/
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/it/
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/sv/
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/it/
- Include context keys for avoiding mail operations overhead.
@BertVGroenendael BertVGroenendael changed the title 18.0 mig account payment mode [18.0][MIG] account payment mode Oct 15, 2024
@BertVGroenendael BertVGroenendael changed the title [18.0][MIG] account payment mode [18.0][MIG] account_payment_mode Oct 15, 2024
@BertVGroenendael BertVGroenendael mentioned this pull request Oct 15, 2024
17 tasks
rvalyi
rvalyi previously approved these changes Oct 15, 2024
Copy link
Member

@rvalyi rvalyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

2024-10-15_11-28

Copy link
Contributor

@alexis-via alexis-via left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We first need to decide if we switch account.payment.mode to the new native account.payment.method.line, cf discussion on #1364

@alexis-via
Copy link
Contributor

@BertVGroenendael Don't hesitate to give your opinion on the questions that I raised about the migration to v18 of OCA/bank-payment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.