Odoo Help

1
2 Answers
0
Avatar

Aktiv software

--Aktiv software--
3790
| 5 3 7
Ahmedabad, India
--Aktiv software--

 Aktiv software

  • Skype : shah.jainesh

  • email : Sales@Aktivsoftware.com

Aktiv software
12/30/17, 5:50 AM

Please follow below code :


A - <filter string="Current Month" name="current_month" domain="[(‘create_date’,'&lt;',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')), (‘create_date’,'&gt;=',time.strftime('%%Y-%%m-01'))]"/>

<filter string="Prev Month" name="prev_month" domain="[(‘create_date,'&gt;=',(context_today()-relativedelta(months=1)).strftime('%%Y-%%m-01')),(‘create_date','&lt;',time.strftime('%%Y-%%m-01'))]"/>
Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now