acción de servidor para crear mandatos bancarios en lote
This commit is contained in:
parent
65818b0155
commit
42da5ed3db
4 changed files with 105 additions and 0 deletions
31
account_banking_mandate_batch/README.md
Normal file
31
account_banking_mandate_batch/README.md
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Account Banking Mandate Batch Create
|
||||
|
||||
Adds a contextual server action **Create SEPA mandates** to the Contacts
|
||||
(`res.partner`) list and form views.
|
||||
|
||||
## Usage
|
||||
|
||||
1. Go to *Contacts* (or *Accounting → Customers*), switch to list view.
|
||||
2. Filter the partners you want (e.g. your members: `is_client = True`).
|
||||
3. Select them (tick the header checkbox to select all).
|
||||
4. *Actions → Create SEPA mandates*.
|
||||
|
||||
For each selected partner the action:
|
||||
|
||||
- takes the partner's first bank account (`bank_ids[:1]`),
|
||||
- creates a recurrent SEPA Core mandate (`format=sepa`, `type=recurrent`,
|
||||
`scheme=CORE`) with today's signature date,
|
||||
- validates it (state → *valid*).
|
||||
|
||||
Partners with no bank account, or that already have a draft/valid mandate,
|
||||
are skipped. A notification reports created / skipped counts.
|
||||
|
||||
> **Legal note:** only create mandates for members who have actually
|
||||
> authorised the direct debit. Adjust the signature date in
|
||||
> `data/server_action.xml` if you need the real authorisation date.
|
||||
|
||||
## Requirements
|
||||
|
||||
Depends on `account_banking_sepa_direct_debit` (OCA `bank-payment`), which
|
||||
pulls in `account_banking_mandate`, `account_payment_order` and
|
||||
`account_payment_mode`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue