Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4360 Tampilan

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.

Avatar
Buang
Jawaban Terbai

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")
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Mei 24
1148
1
Jun 21
2884
1
Apr 21
1969
0
Des 19
5385
1
Nov 19
4034