[IMP] server.env.techname.mixin: Inherit from server.env.mixin.
This commit is contained in:
parent
314d16d37c
commit
154090abb7
|
|
@ -16,17 +16,11 @@ class ServerEnvTechNameMixin(models.AbstractModel):
|
|||
This mixin helps solve the problem by providing a tech name field
|
||||
and a cleanup machinery as well as a unique constrain.
|
||||
|
||||
To use this mixin add it to the _inherit attr of your module like:
|
||||
|
||||
_inherit = [
|
||||
"my.model",
|
||||
"server.env.techname.mixin",
|
||||
"server.env.mixin",
|
||||
]
|
||||
|
||||
Use it in place of "server.env.mixin".
|
||||
"""
|
||||
|
||||
_name = "server.env.techname.mixin"
|
||||
_inherit = "server.env.mixin"
|
||||
_description = "Server environment technical name"
|
||||
_sql_constraints = [
|
||||
("tech_name_uniq", "unique(tech_name)", "`tech_name` must be unique!",)
|
||||
|
|
|
|||
|
|
@ -10,3 +10,4 @@
|
|||
* Thomas Binfeld <thomas.binsfeld@acsone.eu>
|
||||
* Stéphane Bidoul <stefane.bidoul@acsone.com>
|
||||
* Simone Orsi <simahawk@gmail.com>
|
||||
* Iván Todorovich <ivan.todorovich@gmail.com>
|
||||
|
|
|
|||
Loading…
Reference in New Issue