Files
Odoo-Tutorial/education/__init__.py
T

14 lines
366 B
Python
Raw Normal View History

2025-02-21 18:00:17 +07:00
# -*- coding: utf-8 -*-
from . import controllers
from . import models
2025-02-26 16:28:17 +07:00
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