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 return multiple views?

By
Alcaline
on 1/26/15, 4:35 AM 667 views

Does anyone here knows how to return a multiple of views.. i want to return a wizard that contains the data of account.move.line  where i can filter it using the DATE, PERIOD and the FISCAL YEAR.. Please can someone here can help me.. Thanks in advance..

0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 1/26/15, 5:19 AM

Concept missunderstood...
You will ALWAYS return one view... but you can decide ( calculate) wich one in your code.. 

As for your need.. create a wizard ( transient model) with fields: date, period_id, fiscal_year,

in button / method of wizard, use those vals to deterine wich move lines to show, and return view with domain or filter turned on for those vals.. stil.. you will return one view ( tree OR form, OR tree,form ...) 

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: 1/26/15, 4:35 AM
Seen: 667 times
Last updated: 3/16/15, 8:10 AM