mirror of
https://gitlab.com/flectra-community/l10n-switzerland-flectra.git
synced 2024-12-24 13:21:46 +00:00
14 lines
434 B
Python
14 lines
434 B
Python
|
# © 2015-2016 Akretion - Alexis de Lattre <alexis.delattre@akretion.com>
|
||
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||
|
|
||
|
|
||
|
from flectra 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()
|
||
|
return
|