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
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
1
Répondre
4356
Vues
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")
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
mai 24
|
1146 | ||
|
1
juin 21
|
2878 | ||
|
1
avr. 21
|
1968 | ||
|
0
déc. 19
|
5381 | ||
|
1
nov. 19
|
4033 |