I want to add a field, for example, 'external_id' = fields.Char() to all the odoo models.
How can I achieve this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I want to add a field, for example, 'external_id' = fields.Char() to all the odoo models.
How can I achieve this?
You need add external_id field in all models
so you need to override _inherit = "ir.model" models then add
example:
class IrModel(models.Model):
_inherit = 'ir.model'
'external_id' = fields.Char()
Thanks.
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
4
may 25
|
2050 | ||
|
2
may 25
|
5362 | ||
|
1
mar 25
|
1298 | ||
|
4
mar 25
|
4080 | ||
|
3
feb 25
|
4991 |