Odoo Help

2

0
2 Answers
1
Robert Klüsener Germany
9/9/13, 11:13 AM

I used

[['date_deadline', '<=', ((context_today()).strftime('%Y-%m-%d'))]

and it works.

0

Hi,

In the name you can select your action %(module.xml id of my action)d. Put [['date_deadline','<=',time.strftime('%Y-%m-%d')] in the domain of the action.

try this

<record id="module.xml_id" model="model">
    ...
    <field name="domain">[['date_deadline','<=',time.strftime('%Y-%m-%d')]</field>
</record>

Remove this part of the domain in your board and in the attribute

name="%(module.xml_id)d"
1 Comment
Feuerwear GmbH & Co. KG, Robert Klüsener Germany
9/6/13, 3:16 PM

Like this?

        &lt;action context="{'lang': 'de_DE', 'group_by': ['context_id'], 'tz': 'Europe/Berlin', 'uid': 1, 'dashboard_merge_domains_contexts': False}" domain="['date_deadline','&lt;=',time.strftime('%Y-%m-%d')], ['user_id', '=', 1], '|', '|', ['state', '=', 'draft'], ['state', '=', 'open'], ['state', '=', 'pending']]" name="192" string="Aufgaben" view_mode="kanban" /&gt;

This does not work - am getting an error in the dashboard

Ask a Question
Keep Informed
2 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