Skip to Content
Menu
This question has been flagged
1 Reply
1298 Views

I woul like to remove the following filters from the timesheet view:


billable_time

billable_fixed

non_billable


I'm inheriting hr_timesheet.hr_timesheet_line_search and added hr_timesheet and sale_timesheet to the dependencies in the manifest. But I get the error that the fileds can't be located in the parent view.


How can I fix this?


Thank you

Avatar
Discard
Best Answer

Hi, Add the sale_timesheet only to dependencies in the manifest and use the below xml:


  <record id="timesheet_view_search_inherit" model="ir.ui.view">
<field name="name">account.analytic.line.search_inherit</field>
<field name="model">account.analytic.line</field>
<field name="inherit_id" ref="sale_timesheet.timesheet_view_search"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='billable_time']" position="replace">
</xpath>
<xpath expr="//filter[@name='billable_fixed']" position="replace">
</xpath>
<xpath expr="//filter[@name='non_billable']" position="replace">
</xpath>
</field>
</record>

Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
1482
1
Nov 24
1187
2
Sep 24
1046
1
Aug 24
2450
3
Aug 24
2682