Skip to Content
Menu
This question has been flagged
3 Replies
4498 Views

I have the following code to alter a view in sync module for point_of_sale in odoo 11 for hiding a button and I don't know wich is the correct "inherit_id" to use.

<template id="sessions_restaurant_hide_cancel_button" inherit_id="point_of_sale.SelectionPopupWidget">

     <xpath expr="//div[hasclass('button cancel')]/b" position="attributes">

         <attribute name="attrs">{'invisible':True}</attribute>

     </xpath>

</template>


Can someone tell me how to find this id for altering views?

Avatar
Discard
Best Answer

 



you just need to activate the developer mode and see the external id of the view you want to change, see screenshots  and write this id into your code inherit_id

Avatar
Discard
Author Best Answer

Hi, the name is  "pos_restaurant"

Avatar
Discard