Hello,
I want to add a date-filter inside the page "Printers", to filter the records with a from-to picker:
< record id="product_product_template_only_form_view_ext" model="ir.ui.view">
< field name="name">product.product_template_only_form_view.ext < /field>
< field name="model">product.template < /field>
< field name="inherit_id" ref="product.product_template_only_form_view" />
< field name="arch" type="xml">
< xpath expr = "//page[@name='notes']" position="after">
< page string="Printers">
< field name="print_data">
< tree>
< field name="date"/>
< field name="name"/>
< /tree>
< /field>
< /page>
< /xpath>
< /field>
< /record>
I did some research and found this filter:
< filter string="Today" domain="[('date', '>=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('date', '<=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
But I don't know where to add it.
Thank you