Add party's address to the SEPA mandate

Use explicit address selection to display on the SEPA mandate instead of the
default first address.

Closes #14229
This commit is contained in:
Cédric Krier
2025-09-14 12:23:08 +02:00
parent 47b79131dc
commit d96260f590
8 changed files with 67 additions and 13 deletions
+20
View File
@@ -14,6 +14,26 @@ a database from another series.
.. warning::
You cannot skip more than 2 series ending with ``.0``.
7.8
---
After
~~~~~
* If ``account_payment_sepa`` module is activated, fill the address of
validated mandates with default value with the ``trytond-console``:
.. code-block:: python
Mandate = pool.get('account.payment.sepa.mandate')
mandates = Mandate.search([
('state', '=', 'validated'),
('address', '=', None),
])
for mandate in mandates:
mandate.address = mandate.on_change_party()
Mandate.save(mandates)
7.6
---