Skip to Content
Menu
This question has been flagged
1 Reply
2880 Views

I have the following code: 

 <record model="ir.ui.view" id="view_cdr">

<field name="name">cdr.form</field>

<field name="model">board.board</field>

<field name="type">form</field>

<field name="arch" type="xml">

<form string="CDR Form">

<board>

<column> <!-- string="Call Detail Record" -->

<action

name="%(SearchFieldsAction)d"

height="150"

width="300" colspan="2"/>

<action

name="%(CallDBAction)d"/>

</column>

</board>

</form>

</field>

</record>

<record model="ir.actions.act_window" id="cdr">

<field name="name">Call Detail Record</field>

<field name="res_model">board.board</field>

<field name="view_type">form</field>

<field name="view_mode">form</field>

<field name="view_id" ref="view_cdr"/>

</record>


This will generate 2 boards, with some content. But i want to take off the "change layout", that, in my case, is pointless. How can i do this? I try to put the xpath, but it didnt work. 


 
Avatar
Discard
Best Answer

Hide button in board->static->src->xml->board.xml

<button type="button" class="button oe_dashboard_link_change_layout" title="Change Layout..">

</button>

NOTE: Use invisible attribute to hide. Better to do it through custom_module.

Avatar
Discard