Contributors mailing list archives

contributors@odoo-community.org

Re: Product default_code display in pricelists

by
Apertoso, Jos De Graeve
- 04/04/2016 18:24:25

Hi,

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

Regards,
Jos

(Sent from mobile)

Op 30-mrt.-2016 2:22 PM schreef "Jean-Marc Dupont" <jmd@6it.fr>:
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. 06.24.91.02.03  -  04 84 25 17 94

Éditeur de la marque Provenc.io

1° marque e-Commerce 100% Provence




_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe