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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
            
                1
                
                    Odpowiedz
                
            
        
        
            
                4870
                
                    Widoki
                
            
        
    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")
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
| 
            
                Multiple Product Edit in Inventory
            
            
                    Rozwiązane
            
         |  | 1 maj 24  | 1514 | |
|  | 1 cze 21  | 3262 | ||
|  | 1 kwi 21  | 2429 | ||
|  | 0 gru 19  | 5800 | ||
|  | 1 lis 19  | 4458 | 
