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

Period and journal filters in journal items

By
Wided
on 12/17/14, 8:41 AM 619 views

Hi,

I'd like to set the default journal in the filter to the first element of the list (the white one with no journal). I've found the action journal items, and in the context value field there's: {'journal_type':'general'}, I modified it to {}, but I get no account moves. I tried different expressions but none works.

Can you help me , please?

 

 

Journal items would need to have a journal assigned to it. I'm not really sure which action you are talking about (if you can provide the XML ID or name, it would be great).

Ivan
on 12/17/14, 9:50 AM

Yes, but I'm talking about the two filters journal and period in the journal items view. When you go to settings > Technical > Actions > Window Actions The action name is "journal items".

Wided
on 12/18/14, 9:42 AM
0

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 12/17/14, 10:27 AM

If I understand the effect you want, put there:

{'journal_type': False}

Thanks for your answer, but even with that, I have no moves that appear. I want the same effect as when I select no journal, I see all the available moves.

Wided
on 12/17/14, 10:39 AM

I suppose the need to change account_move_line_qickadd.js near line 47 (return false change to null)

zbik
on 12/17/14, 2:01 PM

Do I have to change the line 90? self.last_context["journal_id"] = self.current_journal === null ? false : self.current_journal;

Wided
on 12/18/14, 9:44 AM

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: 12/17/14, 8:41 AM
Seen: 619 times
Last updated: 3/16/15, 8:10 AM