I want to add some custom attributes to the field label of xml, such as:
<group>
field name="a" custom="value"/>
</group>
custom="value" is my custom label.
But it seems that odoo will erase the label it can not recognise.
How to add it?
I want to add some custom attributes to the field label of xml, such as:
<group>
field name="a" custom="value"/>
</group>
custom="value" is my custom label.
But it seems that odoo will erase the label it can not recognise.
How to add it?
Try with string attribute of field tag.
For example:
<field name="a" string="Custom Label">
For add a label in xml file :
<label for="a"/>
But for displaying "Custom Label", modifie in python file :
'a': fields.char('Custom Label', size=64, required=True),