changeset 604af81f8104 in modules/sale_complaint:default
details: 
https://hg.tryton.org/modules/sale_complaint?cmd=changeset;node=604af81f8104
description:
        Add link button

        issue9051
        review280841002
diffstat:

 complaint.xml                   |   1 +
 icons/tryton-sale-complaint.svg |   1 +
 party.xml                       |  12 ++++++++++++
 sale.xml                        |  11 +++++++++++
 tryton.cfg                      |   1 +
 view/party_form.xml             |   8 ++++++++
 view/sale_form.xml              |   8 ++++++++
 7 files changed, 42 insertions(+), 0 deletions(-)

diffs (93 lines):

diff -r 9447bd3bf8a2 -r 604af81f8104 complaint.xml
--- a/complaint.xml     Sun Apr 12 23:06:02 2020 +0200
+++ b/complaint.xml     Mon Apr 13 12:21:55 2020 +0200
@@ -121,6 +121,7 @@
             <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">
diff -r 9447bd3bf8a2 -r 604af81f8104 icons/tryton-sale-complaint.svg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/icons/tryton-sale-complaint.svg   Mon Apr 13 12:21:55 2020 +0200
@@ -0,0 +1,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>
\ No newline at end of file
diff -r 9447bd3bf8a2 -r 604af81f8104 party.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/party.xml Mon Apr 13 12:21:55 2020 +0200
@@ -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>
diff -r 9447bd3bf8a2 -r 604af81f8104 sale.xml
--- a/sale.xml  Sun Apr 12 23:06:02 2020 +0200
+++ b/sale.xml  Mon Apr 13 12:21:55 2020 +0200
@@ -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 @@
             <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>
diff -r 9447bd3bf8a2 -r 604af81f8104 tryton.cfg
--- a/tryton.cfg        Sun Apr 12 23:06:02 2020 +0200
+++ b/tryton.cfg        Mon Apr 13 12:21:55 2020 +0200
@@ -9,4 +9,5 @@
 xml:
     complaint.xml
     sale.xml
+    party.xml
     message.xml
diff -r 9447bd3bf8a2 -r 604af81f8104 view/party_form.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/view/party_form.xml       Mon Apr 13 12:21:55 2020 +0200
@@ -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>
diff -r 9447bd3bf8a2 -r 604af81f8104 view/sale_form.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/view/sale_form.xml        Mon Apr 13 12:21:55 2020 +0200
@@ -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>

Reply via email to