Skip to Content
Menú
This question has been flagged
1 Respondre
1660 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de març 25
1442
1
de febr. 25
2895
2
de febr. 25
1906
1
de març 24
1453
1
d’abr. 22
2365