Skip to Content
Menu
This question has been flagged
4500 Views

Hello,

I want to use a computed field in a right side domain filter expression. so  i declared the field as invisible in the seach view, but i got it as undefined when using filter. This field is supposed to return a variable date format pattern.

<field name="date_start_quarter_start" invisible="1"/>
<filter string="All quarter RDV" name="all_this_quarter_rdv" domain="[ '&amp;',('start', '&gt;=', date_start_quarter_start), ('start', '&lt;=', date_start_quarter_end)]"/>
<filter string="All quarters rdv" name="all_this_month_rdv" domain="['&amp;',('start', '&gt;=', context_today().strftime('%Y-%m-01')),('start', '&lt;=', context_today().strftime('%Y-%m-31'))]"/>

Avatar
Discard