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.

0

How to filter a tree view (model A) by a new create filter belong to model B ?

By
Maxime
on 2/23/16, 4:06 AM 324 views

I have created a new field (many2one, named x_BU, related to account.analytic.account) named "Business Unit" in model account.invoice.line. I show my new field in view account.invoice.form. So, for every client bill accounting line (it doesn't work for supplyers but it's another problem) I can tag an analytic account AND a Business unit (whose I find back in analytic accountdue to the relation many2one) without use analytic distribution.

Then, in model account.move.line i create a new field one2many related to my previous field x_BU to be able to filter my accounting lines by Business Unit in view accounting move line.

But the problem is that : in view account move line, I find my filter Busniess Unit in Advanced filter, but I doesn't filter my accounting lines.

Could you tell me what I'm doing wrong ?or What's it's not possible to do ?


Tkank you if you can Help me;

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

1 follower(s)

Stats

Asked: 2/23/16, 4:06 AM
Seen: 324 times
Last updated: 2/23/16, 4:09 AM