Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1670 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 25
1450
1
Feb. 25
2909
2
Feb. 25
1908
1
März 24
1464
1
Apr. 22
2368