Commit Graph

10 Commits

Author SHA1 Message Date
Alexis de Lattre
99f49d07c9 [MIG] account_payment_mode from v13 to v14 2020-10-16 23:53:05 +02:00
OCA-git-bot
6bbc1754f3 pre-commit update 2020-10-16 23:03:47 +02:00
Eric Lembregts
82a8f7b34c [MIG] account_payment_mode: Migration to 13.0 2020-10-16 23:03:47 +02:00
Jon Zaballa
e60ef408a3 [11.0][FIX] account_payment_mode res.partner view banks group attribute
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.
2020-10-16 23:03:47 +02:00
Pedro M. Baeza
aca22fb588 [FIX] account_payment_mode: Don't show 2 times acc_type in partner bank form
It's already on standard.
2020-10-16 23:03:47 +02:00
Alexis de Lattre
655196f101 [FIX+IMP] account_payment_mode: Several small usability improvements + fix
- FIX: Don't store acc_type of res.partner.bank (#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.
2020-10-16 23:03:47 +02:00
Jordi Ballester
3c519d6ef6 Better constraints for multicompany environments. 2020-10-16 23:03:47 +02:00
Enric Tobella
03abb786d6 [MIG] account_payment_mode 2020-10-16 23:03:47 +02:00
Alexis de Lattre
fd3d4abd58 Port almost all modules to v10 (#305)
Port almost all modules to v10

* Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug #300)
2020-10-16 23:03:47 +02:00
Alexis de Lattre
857c13b128 [ADD] acocunt_payment_mode: Start to port bank-payment to v9 (with a 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 #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)
2020-10-16 23:03:47 +02:00