14 lines
480 B
Python
14 lines
480 B
Python
# Copyright 2018 Akretion (http://www.akretion.com)
|
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import api, SUPERUSER_ID
|
|
|
|
|
|
def set_xml_format_in_pdf_invoice_to_ubl(cr, registry):
|
|
with api.Environment.manage():
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
companies = env['res.company'].search([])
|
|
companies.write({'xml_format_in_pdf_invoice': 'ubl'})
|
|
return
|