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

Can't remove top "Save" button

By
Val Kinyock
on 5/28/15, 10:11 AM 600 views


I want to remove the top "Save" button from the formview of my custom module.

I know that we perform this by setting write/create to false in the XML, which I did and can't figure out why it is still there.

My view:

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

<field name="name">module.genall.form</field>

<field name="model">module.genall</field>

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

<form string="Automatically generate bills" edit="false" create="false" delete="false" write="false">

<button name="generate_all" type="object" string="Generate bills" icon="oe_highlight"/>

</form>

</field>

</record>

The related action:

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

<field name="name">Automatically generate bills</field>

<field name="res_model">alkivi.genall</field>

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

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

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

</record>

Do you have an idea ? Thanks!

0
Zohair Iyaz
On 12/29/15, 12:30 PM

when you click save, does it allow to save or does it throw an error?

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: 5/28/15, 10:11 AM
Seen: 600 times
Last updated: 12/29/15, 12:30 PM