mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
* Add support for non-SEPA DD and CT without without IBANs * Add hooks for l10n_ch_sepa (pain.001.001.03.ch.02) * Move code of account_banking_pain_base/models/banking_export_pain.py to account_banking_pain_base/models/account_payment_order.py * Add postal address in party block * Adds flexibility to support direct debit direct debit for switzerland (pain.008.001.02.ch.01) * Implement SEPA Core recommandations for postal address * Add field local_instrument in payment lines and bank payment lines * Add the bank_line as argument to some methods that generate SEPA XML
16 lines
524 B
Python
16 lines
524 B
Python
# -*- coding: utf-8 -*-
|
|
# © 2015-2016 Akretion - Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
|
|
from openerp import SUPERUSER_ID
|
|
|
|
|
|
def set_default_initiating_party(cr, pool):
|
|
company_ids = pool['res.company'].search(cr, SUPERUSER_ID, [])
|
|
companies = pool['res.company'].browse(cr, SUPERUSER_ID, company_ids)
|
|
for company in companies:
|
|
pool['res.company']._default_initiating_party(
|
|
cr, SUPERUSER_ID, company)
|
|
return
|