Odoo-Tutorial/education/__init__.py
2025-02-26 16:28:17 +07:00

14 lines
366 B
Python

# -*- coding: utf-8 -*-
from . import controllers
from . import models
from . import wizard
def add_school_hook(env): # Ensure both cr and registry are accepted
data = [
{"name": "Haiphong University", "code": "THP"},
{"name": "Hanoi University", "code": "HANU"},
]
env["education.school"].create(data) # Close the function properly