changeset 4cdfa6503f87 in modules/sale_subscription:default
details: 
https://hg.tryton.org/modules/sale_subscription?cmd=changeset;node=4cdfa6503f87
description:
        Add link button

        issue9051
        review280841002
diffstat:

 icons/tryton-sale-subscription.svg |   1 +
 party.xml                          |  12 ++++++++++++
 subscription.xml                   |   6 ++++++
 tryton.cfg                         |   1 +
 view/party_form.xml                |   8 ++++++++
 5 files changed, 28 insertions(+), 0 deletions(-)

diffs (66 lines):

diff -r 1a3ee449f7c8 -r 4cdfa6503f87 icons/tryton-sale-subscription.svg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/icons/tryton-sale-subscription.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="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 
4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 
9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 
0-1.57-.46-3.03-1.24-4.26z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
\ No newline at end of file
diff -r 1a3ee449f7c8 -r 4cdfa6503f87 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 1a3ee449f7c8 -r 4cdfa6503f87 subscription.xml
--- a/subscription.xml  Fri Apr 10 18:53:44 2020 +0200
+++ b/subscription.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="sale_subscription">
+            <field name="name">tryton-sale-subscription</field>
+            <field name="path">icons/tryton-sale-subscription.svg</field>
+        </record>
+
         <record model="ir.ui.view" id="subscription_view_form">
             <field name="model">sale.subscription</field>
             <field name="type">form</field>
@@ -76,6 +81,7 @@
             <field name="domain"
                 eval="[If(Eval('active_ids', []) == [Eval('active_id')], 
('party', '=', Eval('active_id')), ('party', 'in', Eval('active_ids', [])))]"
                 pyson="1"/>
+            <field name="search_value" eval="[('state', 'not in', ['closed', 
'canceled'])]" pyson="1"/>
         </record>
         <record model="ir.action.keyword"
             id="act_subscription_party_relate_keyword1">
diff -r 1a3ee449f7c8 -r 4cdfa6503f87 tryton.cfg
--- a/tryton.cfg        Fri Apr 10 18:53:44 2020 +0200
+++ b/tryton.cfg        Mon Apr 13 12:21:55 2020 +0200
@@ -14,4 +14,5 @@
     recurrence.xml
     service.xml
     subscription.xml
+    party.xml
     message.xml
diff -r 1a3ee449f7c8 -r 4cdfa6503f87 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-subscription" 
name="sale_subscription.act_subscription_party_relate" empty="hide"/>
+    </xpath>
+</data>

Reply via email to