Skip to Content
Menu
This question has been flagged
1 Atsakyti
1671 Rodiniai

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!



Portretas
Atmesti
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,

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
kov. 25
1450
1
vas. 25
2909
2
vas. 25
1908
1
kov. 24
1464
1
bal. 22
2369