Skip to Content
Menu
This question has been flagged
1 Reply
1510 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
0
May 25
12
2
Jan 25
2553
1
Dec 24
6227
1
Nov 24
2713
1
Nov 24
2014