39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
from .models_constants import EventManagement
|
|
from odoo import models, fields, api
|
|
|
|
|
|
class QuanLySuKien(models.Model):
|
|
_name = "cenhomes.quan_ly_su_kien"
|
|
_description = "Quản Lý Sự Kiện"
|
|
|
|
name = fields.Char(string="Tên", required=True)
|
|
dinh_dang_su_kien = fields.Selection(
|
|
selection=EventManagement.event_types,
|
|
string="Định Dạng",
|
|
required=True,
|
|
)
|
|
nguoi_phu_trach_id = fields.Char(
|
|
string="Người Phụ Trách",
|
|
)
|
|
ngay_to_chuc = fields.Date(
|
|
string="Ngày Tổ Chức",
|
|
)
|
|
gio_to_chuc = fields.Float(
|
|
string="Giờ Tổ Chức",
|
|
help="Giờ tổ chức theo định dạng 24h (ví dụ: 14.5 = 14:30)",
|
|
)
|
|
dia_diem_to_chuc = fields.Char(
|
|
string="Địa Điểm Tổ Chức",
|
|
)
|
|
noi_dung_su_kien = fields.Text(string="Nội Dung")
|
|
dien_gia = fields.Char(string="Diễn Giả")
|
|
mc = fields.Char(string="MC")
|
|
ky_thuat = fields.Char(string="Kỹ Thuật")
|
|
so_luong_khach_du_kien = fields.Integer(
|
|
string="Số Lượng Khách Dự Kiến",
|
|
)
|
|
so_luong_khach_thuc_te = fields.Integer(string="Số Lượng Khách Thực Tế")
|
|
ngan_sach = fields.Float(
|
|
string="Ngân Sách",
|
|
)
|