in timesheet start date, in xml, we add widget="date" so it shows as only date without time, so it feasible to filter out in excel, also add group by filter so DD, week, MM, quarter, yyyy.

This commit is contained in:
shubham 2025-06-18 00:44:58 +05:30
parent c3e53ceb6c
commit 6ea659b861
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,7 @@
<field name="timesheet_cost" optional="show" sum="Total Of Hourly Cost"/>
<field name="start_date" optional="show"/>
<field name="end_date" optional="show"/>
<field name="timesheet_sdatetime" optional="show"/>
<field name="timesheet_sdatetime" widget="date" optional="show"/>
</tree>
</field>
</record>
@ -81,6 +81,7 @@
<filter string="Total hours are budgeted without division to consultant" name="limit" domain="[('pricing_type','=','employee_rate'),('project_type','=','hours_no_limit')]"/>
<filter string="Start Date" name="filter_start_date" date="start_date"/>
<filter string="Timesheet Start Time" name="filter_timesheet_sdatetime" date="timesheet_sdatetime"/>
<filter name="group_by_day" string="Timesheet Start Time : DAY" context="{'group_by': 'timesheet_sdatetime:day'}"/>
<filter string="Actual/Budgeted" name="custom_bhrs" domain="['|','|',('overall_budgeted_revenue','>',0),('budgeted_hours','>',0),('budgeted_revenue','>',0)]"/>
<!-- <filter string="Actual/Budgeted" name="custom_bhrs" domain="[('timesheet_sdatetime','=',False)]"/>-->
<!-- <filter string="End Date" name="filter_end_date" date="end_date"/> -->