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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
4
May 25
|
2047 | ||
|
2
May 25
|
5352 | ||
|
1
Mar 25
|
1297 | ||
|
4
Mar 25
|
4076 | ||
|
3
Feb 25
|
4981 |