This question has been flagged
1 Reply
6027 Views

Hi Friend,

I need a solution for hiding issues button(which is for redirecting to current project's related issues form) from project form. It doesn't have name attribute so can use that in xpath.I have given below the xml code which is to be replaced:

<button class="oe_inline oe_stat_button" type="action" attrs="{'invisible':[('use_issues','=', 0)]}" name="%    (act_project_project_2_project_issue_all)d" icon="fa-bug">

    <field string="Issues" name="issue_count" widget="statinfo"/>

</button>

Avatar
Discard
Best Answer

Hello you can try this one

<xpath expr="//button[@name='%(project.act_project_project_2_project_issue_all)d']" position="replace">

     Enter Your content  

</xpath>

Avatar
Discard
Author

Thanks Prashant Panchal