Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4369 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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")
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mai 24
1149
1
iun. 21
2890
1
apr. 21
1972
0
dec. 19
5404
1
nov. 19
4036