How I can get current date in xml in odoo?
<p>I am adding group by filter of past due in accounting tab in odoo. And want to get context <strong>due_date &lt; current date</strong>, but i am not getting current date anywhere, I don't know how i can get it, anybody can tell me that how to get current date in odoo? </p>

<p><strong>here is my group by filter</strong></p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;xpath expr="//filter[@string='Due Month']" position="after
   &lt;filter string="Past Due" context="{'group_by':'date_due &lt; current date'}"/&gt;
&lt;/xpath&gt;</code></pre>
</div>
</div>
</p>

<p><strong>and here is my other code in which i did it with computed field but don't how i can get current date</strong></p>

<pre><code>@api.depends('date_due')
@api.multi
def _compute_due_date(self):
    for record in self:
        record.past_due = record.date_due &lt; record.date.today().strftime('%Y-%m-%d')
</code></pre>

<pre><code>&lt;xpath expr="//filter[@string='Due Month']" position="after
   &lt;filter string="Past Due" name="past_due_filter" domain="[('date_due','&amp;lt;',current_date)]" /&gt;

&lt;/xpath&gt;
</code></pre>

python xml openerp odoo-8