Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1513 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
kvě 25
12
2
led 25
2606
1
pro 24
6276
1
lis 24
2750
1
lis 24
2057