mirror of
https://gitlab.com/flectra-community/partner-contact.git
synced 2024-11-15 02:32:04 +00:00
30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<!-- Copyright 2020 Tecnativa - Jairo Llopis
|
||
|
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
||
|
<data>
|
||
|
<record id="view_partner_form" model="ir.ui.view">
|
||
|
<field name="name">Add button to see child contacts full form</field>
|
||
|
<field name="model">res.partner</field>
|
||
|
<field name="inherit_id" ref="base.view_partner_form" />
|
||
|
<field name="arch" type="xml">
|
||
|
<!-- Make child kanban able to open form in full view -->
|
||
|
<xpath
|
||
|
expr="//field[@name='child_ids']/kanban/templates//field[@name='name']"
|
||
|
position="after"
|
||
|
>
|
||
|
<button
|
||
|
class="btn btn-link"
|
||
|
type="object"
|
||
|
name="open_child_form"
|
||
|
title="Open full form"
|
||
|
>
|
||
|
<i
|
||
|
class="fa fa-caret-right fa-2x"
|
||
|
style="position:absolute;top:-4px;right:5px;transform:rotateY(0deg) rotate(-45deg);"
|
||
|
/>
|
||
|
</button>
|
||
|
</xpath>
|
||
|
</field>
|
||
|
</record>
|
||
|
</data>
|