Add link button

issue9051
review280841002
This commit is contained in:
Cédric Krier committed 2020-04-13 12:21:55 +02:00
1 parent caae9325ce
commit e3b1492ed6
7 files changed
+42

No files matched your search

+1
View File
@@ -121,6 +121,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="domain"
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('customer', '=', Eval('active_id')), ('customer', 'in', Eval('active_ids')))]"
pyson="1"/>
<field name="search_value" eval="[('state', 'not in', ['done', 'rejected', 'cancelled'])]" pyson="1"/>
</record>
<record model="ir.action.act_window.view"
id="act_complaint_relate_party_view1">
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/></svg>

After

Width:  |  Height:  |  Size: 242 B

+12
View File
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="party_view_form">
<field name="model">party.party</field>
<field name="inherit" ref="party.party_view_form"/>
<field name="name">party_form</field>
</record>
</data>
</tryton>
+11
View File
@@ -3,6 +3,11 @@
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.icon" id="complaint_icon">
<field name="name">tryton-sale-complaint</field>
<field name="path">icons/tryton-sale-complaint.svg</field>
</record>
<record model="ir.ui.view" id="configuration_view_form">
<field name="model">sale.configuration</field>
<field name="inherit" ref="sale.sale_configuration_view_form"/>
@@ -28,5 +33,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="name">Customer Complaint</field>
<field name="code">sale.complaint</field>
</record>
<record model="ir.ui.view" id="sale_view_form">
<field name="model">sale.sale</field>
<field name="inherit" ref="sale.sale_view_form"/>
<field name="name">sale_form</field>
</record>
</data>
</tryton>
+1
View File
@@ -9,4 +9,5 @@ depends:
xml:
complaint.xml
sale.xml
party.xml
message.xml
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//group[@id='links']" position="inside">
<link icon="tryton-sale-complaint" name="sale_complaint.act_complaint_relate_party" empty="hide"/>
</xpath>
</data>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//group[@id='links']" position="inside">
<link icon="tryton-sale-complaint" name="sale_complaint.act_complaint_relate_sale"/>
</xpath>
</data>