# _*_ coding: utf-8 _*_
# Author: JasonWu( Jaronemo@msn.com)

from odoo import SUPERUSER_ID
from odoo.api import Environment


def post_init_hook(cr, pool):
    """
    Fetches all the sale order and resets the sequence of the order lines
    """
    env = Environment(cr, SUPERUSER_ID, {})
    course = env['jt.course'].search([])
    course._reset_sequence()