diff --git a/icons/tryton-purchase.svg b/icons/tryton-purchase.svg new file mode 100644 index 0000000000..81a3cf0977 --- /dev/null +++ b/icons/tryton-purchase.svg @@ -0,0 +1,4 @@ + + + + diff --git a/purchase.py b/purchase.py index d323877148..5f85532207 100644 --- a/purchase.py +++ b/purchase.py @@ -224,8 +224,8 @@ class Purchase(Workflow, ModelSQL, ModelView, TaxableMixin): 'draft': { 'invisible': ~Eval('state').in_( ['cancel', 'quotation', 'confirmed']), - 'icon': If(Eval('state') == 'cancel', 'tryton-clear', - 'tryton-go-previous'), + 'icon': If(Eval('state') == 'cancel', 'tryton-undo', + 'tryton-back'), 'depends': ['state'], }, 'quote': { diff --git a/purchase.xml b/purchase.xml index 08b5762339..a95789c227 100644 --- a/purchase.xml +++ b/purchase.xml @@ -27,16 +27,19 @@ this repository contains the full copyright notices and license terms. --> - + + tryton-purchase + icons/tryton-purchase.svg + + + - + diff --git a/setup.py b/setup.py index 004463b0ef..2bcdc38e35 100644 --- a/setup.py +++ b/setup.py @@ -73,7 +73,7 @@ setup(name=name, package_data={ 'trytond.modules.purchase': (info.get('xml', []) + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'tests/*.rst', - '*.fodt']), + '*.fodt', 'icons/*.svg']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', diff --git a/view/purchase_form.xml b/view/purchase_form.xml index aaee391184..ccb8cd4e9b 100644 --- a/view/purchase_form.xml +++ b/view/purchase_form.xml @@ -42,14 +42,12 @@ this repository contains the full copyright notices and license terms. -->