Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2455 Vistas

Hi, I want to deleted a button of form fleet vehicle. the button I should deleted is services. Any suggestion.

Avatar
Descartar
Mejor respuesta

Create a custom module that inherits the xml from the form you want to modify. Here is an example of the code you should use.

<record model="ir.ui.view" id="view_partner_form2">
    <field name="name">res.partner.form.inherit2</field>
    <field name="model">res.partner</field>
    <field name="inherit_id" ref="base.view_partner_form"/>
    <field name="arch" type="xml">
        <field name="lang" position="replace"/>
    </field>
</record>
Avatar
Descartar
Autor

Perfect, and if i want removed a button is equal

Autor Mejor respuesta

Perfect, and if i want removed a button is equal

Avatar
Descartar