[FIX] sale_timesheet: xpath on restricted view
parent_id is added in the view hr_timesheet.view_task_form2_inherited which is restricted to employee only. When a portal tries to resolve the view sale_timesheet.view_sale_service_inherit_form2 the xpath fails as parent_id is not present in the view.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<record id="view_sale_service_inherit_form2" model="ir.ui.view">
|
||||
<field name="name">sale.service.form.view.inherit</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="groups_id" eval="[(4, ref('base.group_user'))]"/>
|
||||
<field name="inherit_id" ref="project.view_task_form2"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@name='button_box']" position="inside">
|
||||
|
||||
Reference in New Issue
Block a user