Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Odoo v7, how to take off "change layout"button from board?

By
luiza
on 7/7/16, 10:42 AM 200 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. 


 
0
venugopal voraganti
On 8/6/16, 3:23 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/7/16, 10:42 AM
Seen: 200 times
Last updated: 8/6/16, 3:23 AM