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

        issue9051
        review280841002
diffstat:

 account.xml              |  5 +++++
 icons/tryton-invoice.svg |  1 +
 party.xml                |  1 +
 view/party_form.xml      |  3 +++
 4 files changed, 10 insertions(+), 0 deletions(-)

diffs (45 lines):

diff -r 9801bd115e52 -r bb9d4e9c7a49 account.xml
--- a/account.xml       Fri Apr 10 18:40:26 2020 +0200
+++ b/account.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="invoice_icon">
+            <field name="name">tryton-invoice</field>
+            <field name="path">icons/tryton-invoice.svg</field>
+        </record>
+
         <record model="ir.ui.view" id="fiscalyear_view_form">
             <field name="model">account.fiscalyear</field>
             <field name="inherit" ref="account.fiscalyear_view_form"/>
diff -r 9801bd115e52 -r bb9d4e9c7a49 icons/tryton-invoice.svg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/icons/tryton-invoice.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="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 
22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 
22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 
3.5 6 2 4.5 3.5 3 2v20z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
\ No newline at end of file
diff -r 9801bd115e52 -r bb9d4e9c7a49 party.xml
--- a/party.xml Fri Apr 10 18:40:26 2020 +0200
+++ b/party.xml Mon Apr 13 12:21:55 2020 +0200
@@ -48,6 +48,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', ['paid', 
'cancel'])]" pyson="1"/>
         </record>
         <record model="ir.action.keyword"
                 id="act_open_invoice_keyword1">
diff -r 9801bd115e52 -r bb9d4e9c7a49 view/party_form.xml
--- a/view/party_form.xml       Fri Apr 10 18:40:26 2020 +0200
+++ b/view/party_form.xml       Mon Apr 13 12:21:55 2020 +0200
@@ -2,6 +2,9 @@
 <!-- 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-invoice" name="account_invoice.act_invoice_form2" 
empty="hide"/>
+    </xpath>
     <xpath
         expr="/form/notebook/page[@id='accounting']/separator[@id='account']"
         position="before">

Reply via email to