I need to change the name of the "Product name" field to "Description" of the products template in odoo v13. I don't want to do that name change from the odoo interface, but from a custom addon. And if it is possible to change the characteristics of the existing field from the custom addon.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3528
Views
You can change the string attribute using a custom module you may use the below code for reference:
<xpath expr="//field[@name='reference_filed']" position="attributes">
<attribute name="string">Your String Here</attribute>
</xpath>
. You may override the field as below:
class YourModel(models.Model):
_inherit = 'your.model'
reference_filed = fields.FieldType(string="Your String Here")
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
May 24
|
378 | ||
|
1
Jun 21
|
1954 | ||
|
1
Apr 21
|
1178 | ||
|
0
Dec 19
|
4477 | ||
|
1
Nov 19
|
3277 |