Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1713 Vues

Hi
I am working with Odoo Enterprise Web 16.4+e

In product list of Inventory module, there is a default "default_code" field that is automatically appears in front of product name in product list and also in Moves History. How to remove that one so I can see ONLY PRODUCT NAME?

Thanks in advance!



Avatar
Ignorer
Meilleure réponse

Hi, 

We can change the name  by using the name_get function 


class Product(models.Model)

_inherit = 'product.template'

  

       def name_get(self):

                   result = []

                   for record in self:

                            result.append((record.id, record.name))

                   return result


Hope it helps,

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
mars 25
1529
1
févr. 25
2961
2
févr. 25
1934
1
mars 24
1504
1
avr. 22
2399