Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Customize Breadcrumbs when call treeview Odoo8.0

By
NhuVanTran
on 6/18/15, 1:36 PM 473 views

Hi,

I have a treeview named Serial and it has some fields : field_1, field_2, field_3, field_4...

I customized treeview to allow user can click a field, and system will filter record by groupby based on that field

In XML file, I use widget="clickable"

<field name="field_1" widget="clickable"/> 

and in .py file, I call function like :

def field_1_filter(self, cr, uid, ids, ctx, context=None): 

In this function, I will call current treeview again, with context

ctx = dict(ctx, search_default_field_1=my_table_data.field_1) 


Finally, here is my question :

When I call treeview again, Breadcrumbs will be added a label. And I get Breadcrumbs as below :

Serial / Serial / Serial / <so much label>

So, how can i fix it? I want to get Breadcrumbs like Serial / field_1 / field_3 (when I click field_1 and field_3 after)


Thanks your advance

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 6/18/15, 1:36 PM
Seen: 473 times
Last updated: 6/14/16, 8:58 AM