Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4371 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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")
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Multiple Product Edit in Inventory แก้ไขแล้ว
1
พ.ค. 24
1149
1
มิ.ย. 21
2890
1
เม.ย. 21
1972
0
ธ.ค. 19
5406
1
พ.ย. 19
4037