Community mailing list archives

community@mail.odoo.com

Display product default_code on pricelist item view

by
Aurélien Rivet
- 03/30/2016 08:09:29
Hello, I don't know if this is the right place to ask a question about 
Odoo development but I try.
On the product.pricelist.version view there is a list of items. Items 
have one2Many fields to product.template and product.product.
What I want is to display the default_code of the product on the tree 
view (product.product_pricelist_item_tree_view) because by default only 
the name is displayed. How can I achieve that ? I already tried to 
override name_get but it doesnt seem to be called there. I also tried to 
nest fields in views. But without success.
Hope someone can help.