Browse Source

[IMP] partner_contact_access_link: black, isort, prettier

14.0
Harald Panten 4 years ago
committed by newtratip
parent
commit
3e7e005a55
  1. 8
      partner_contact_access_link/__manifest__.py
  2. 1
      partner_contact_access_link/readme/USAGE.rst
  3. 15
      partner_contact_access_link/views/res_partner_views.xml

8
partner_contact_access_link/__manifest__.py

@ -12,10 +12,6 @@
"license": "AGPL-3", "license": "AGPL-3",
"application": False, "application": False,
"installable": True, "installable": True,
"depends": [
"base",
],
"data": [
"views/res_partner_views.xml",
],
"depends": ["base",],
"data": ["views/res_partner_views.xml",],
} }

1
partner_contact_access_link/readme/USAGE.rst

@ -7,4 +7,3 @@ To use this module, you need to:
can click to go to hers/his full form: can click to go to hers/his full form:
.. image:: ../static/description/full-form.gif .. image:: ../static/description/full-form.gif

15
partner_contact_access_link/views/res_partner_views.xml

@ -1,21 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2020 Tecnativa - Jairo Llopis <!-- Copyright 2020 Tecnativa - Jairo Llopis
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data> <data>
<record id="view_partner_form" model="ir.ui.view"> <record id="view_partner_form" model="ir.ui.view">
<field name="name">Add button to see child contacts full form</field> <field name="name">Add button to see child contacts full form</field>
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" /> <field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<!-- Make child kanban able to open form in full view --> <!-- 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">
<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-external-link-square" /> <i class="fa fa-external-link-square" />
</button> </button>
</xpath> </xpath>
</field> </field>
</record> </record>
</data> </data>
Loading…
Cancel
Save