from . import models def post_init_hook(env): """Best-effort immediate attempt at the accounting bootstrap. The daily cron in data/ir_cron.xml (calling the same idempotent method from a separate transaction) is what guarantees eventual correctness - see models/res_company.py for why a single call from within this hook's own transaction isn't reliable on this Odoo build. """ env.company._tncsc_setup_accounting()