mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_banking_pain_base, account_banking_sepa_credit_transfer, account_banking_direct_debit: Remove Environment.manage()
Environment.manage() is deprecated in v 15.0
This commit is contained in:
committed by
Pedro M. Baeza
parent
eaf1a81cd4
commit
9d80a5d9ed
@@ -7,7 +7,7 @@
|
||||
{
|
||||
"name": "Account Banking PAIN Base Module",
|
||||
"summary": "Base module for PAIN file generation",
|
||||
"version": "15.0.1.0.1",
|
||||
"version": "15.0.1.0.2",
|
||||
"license": "AGPL-3",
|
||||
"author": "Akretion, Noviat, Tecnativa, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/bank-payment",
|
||||
|
||||
@@ -6,8 +6,7 @@ from odoo import SUPERUSER_ID, api
|
||||
|
||||
|
||||
def set_default_initiating_party(cr, registry):
|
||||
with api.Environment.manage():
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
for company in env["res.company"].search([]):
|
||||
company._default_initiating_party()
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
for company in env["res.company"].search([]):
|
||||
company._default_initiating_party()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user