_name = "semantics.topic"
- columns = {
- "name": fields.char(size="64", "Title", required=True),
- }
\ No newline at end of file
+ _inherit = "mail.thread"
+
+ _columns = {
+ "name": fields.char(string="Title", size=64, required=True),
+ "description": fields.text(string="Description"),
+ }
+
+ _sql_constraints = [
+ (
+ "name_different_from_description_constraint",
+ "CHECK(name <> description)",
+ "Fields name and description should be different",
+ ),
+ ]
\ No newline at end of file