Contributors mailing list archives

Browse archives


Re: Product default_code display in pricelists

Accomodata, Jos De Graeve
- 04/04/2016 20:24:25


Technically, a product template has no default code. The field belongs to the product variant. On the product template form the field is shown if only 1 variant exists.

If you are searching on product variants the default code is always shown.

To modify this behaviour, modify the name_get method on product.template


(Sent from mobile)

Op 30-mrt.-2016 2:22 PM schreef "Jean-Marc Dupont" <>:
Hello Odoo experts,

can someone explain why the product default code is not used in displaying the product name like in any other module ?
Neither in price list items list, nor when entering a product template in the price list item form

displaying name like that : [Code] Name

And subsidiary question : does a module exist for doing that ?

Thanks a lot for your answers

Jean-Marc DUPONT 

Agence Web, e-Commerce et Systèmes d'entreprise 

68, rue du Refuge - 84200 Carpentras

T.  -  04 84 25 17 94

Éditeur de la marque

1° marque e-Commerce 100% Provence

Post to: