Skip to Content
मेन्यू
This question has been flagged
2 Replies
2457 Views

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

Avatar
Discard
Best Answer

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
Discard
Author

Perfect, and if i want removed a button is equal

Author Best Answer

Perfect, and if i want removed a button is equal

Avatar
Discard