Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1698 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 25
1498
1
úno 25
2937
2
úno 25
1916
1
bře 24
1484
1
dub 22
2384