You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
459 B
Python

8 months ago
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, SUPERUSER_ID
from . import models
from . import controllers
from . import wizard
def set_periodicity_journal_on_companies(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
for company in env['res.company'].search([]):
company.account_tax_periodicity_journal_id = company._get_default_misc_journal()