Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1667 Переглядів

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!



Аватар
Відмінити
Найкраща відповідь

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,

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 25
1446
1
лют. 25
2903
2
лют. 25
1907
1
бер. 24
1455
1
квіт. 22
2366