I have some field with string name Provider
In different cases i need to change Provider for another field name. How can i do it? What function i need to overwrite?
Thank's
res_pr = fields.Char(string='Provider')
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have some field with string name Provider
In different cases i need to change Provider for another field name. How can i do it? What function i need to overwrite?
Thank's
res_pr = fields.Char(string='Provider')
Lets suppose you have model A defined as below:
from odoo import fields, models, api, _
class A(models.Model):
_name = 'A'
field_name = fields.char(string='Provider')
So you will inherit the model and override the field as below:
from odoo import fields, models, api, _
class A(models.Model):
_inherit = "A"
field_name = fields.char(string='New Name')
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Sep 19
|
7 | ||
|
0
Apr 18
|
2722 | ||
|
0
Jul 20
|
6061 | ||
|
0
May 17
|
4858 | ||
|
2
Mar 17
|
9723 |