This question has been flagged
1 Reply
2260 Views

I have two modules, both work with res_partner and both add an additional button on how to add these buttons correctly so that they are displayed in one line:

https://ibb.co/9Hyx3wC
i add them in the same way

<xpath expr="/form/*" position="before">
<header>
<button string="Fill Partner's Card" class="oe_highlight oe_read_only" type="object" name="fill_button_card"/>
</header>
</xpath>

Avatar
Discard
Best Answer

Make your module depend on other module which is already adding the button in the header and then add your button using xpath in the header.

Ex:

<xpath expr="/form/header" position="inside">
<button ... />
</xpath>


Avatar
Discard
Author

but if I am going to use these modules together and separately?