changeset 53f3722661bf in modules/stock_split:default
details: 
https://hg.tryton.org/modules/stock_split?cmd=changeset;node=53f3722661bf
description:
        Use material icon for split action

        issue8643
        review272161002
diffstat:

 icons/tryton-stock-split.svg |  1 +
 setup.py                     |  2 +-
 stock.xml                    |  5 +++++
 view/move_form.xml           |  2 +-
 4 files changed, 8 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r ab3565618575 -r 53f3722661bf icons/tryton-stock-split.svg
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/icons/tryton-stock-split.svg      Thu Sep 12 22:56:56 2019 +0200
@@ -0,0 +1,1 @@
+<svg xmlns="http://www.w3.org/2000/svg"; width="24" height="24" viewBox="0 0 24 
24"><path d="M0 0h24v24H0z" fill="none"/><path d="M14 4l2.29 2.29-2.88 2.88 
1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 
4.7V20h2v-8.41l-5.29-5.3z"/></svg>
\ No newline at end of file
diff -r ab3565618575 -r 53f3722661bf setup.py
--- a/setup.py  Mon May 06 15:17:23 2019 +0200
+++ b/setup.py  Thu Sep 12 22:56:56 2019 +0200
@@ -79,7 +79,7 @@
     package_data={
         'trytond.modules.stock_split': (info.get('xml', [])
             + ['tryton.cfg', 'view/*.xml', 'locale/*.po',
-                'tests/*.rst']),
+                'icons/*.svg', 'tests/*.rst']),
         },
     classifiers=[
         'Development Status :: 5 - Production/Stable',
diff -r ab3565618575 -r 53f3722661bf stock.xml
--- a/stock.xml Mon May 06 15:17:23 2019 +0200
+++ b/stock.xml Thu Sep 12 22:56:56 2019 +0200
@@ -3,6 +3,11 @@
 this repository contains the full copyright notices and license terms. -->
 <tryton>
     <data>
+        <record model="ir.ui.icon" id="stock_split_icon">
+            <field name="name">tryton-stock-split</field>
+            <field name="path">icons/tryton-stock-split.svg</field>
+        </record>
+
         <record model="ir.action.wizard" id="wizard_split_move">
             <field name="name">Split Move</field>
             <field name="wiz_name">stock.move.split</field>
diff -r ab3565618575 -r 53f3722661bf view/move_form.xml
--- a/view/move_form.xml        Mon May 06 15:17:23 2019 +0200
+++ b/view/move_form.xml        Thu Sep 12 22:56:56 2019 +0200
@@ -3,6 +3,6 @@
 this repository contains the full copyright notices and license terms. -->
 <data>
     <xpath expr="/form/group[@id='buttons']" position="inside">
-        <button name="split_wizard"/>
+        <button name="split_wizard" icon="tryton-stock-split"/>
     </xpath>
 </data>

Reply via email to