From 311e46e30bc8f18962df1c4e06bd7f24e07de533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 10 Mar 2013 17:30:20 +0100 Subject: [PATCH] Use separate XML files for views --- MANIFEST.in | 1 + product.xml | 26 +------------------------- setup.py | 2 +- view/template_form.xml | 22 ++++++++++++++++++++++ 4 files changed, 25 insertions(+), 26 deletions(-) create mode 100644 view/template_form.xml diff --git a/MANIFEST.in b/MANIFEST.in index e4632a141f..732a76eded 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,6 +6,7 @@ include CHANGELOG include LICENSE include tryton.cfg include *.xml +include view/*.xml include *.odt include locale/*.po include doc/* diff --git a/product.xml b/product.xml index e083cee38e..c1be0f025d 100644 --- a/product.xml +++ b/product.xml @@ -7,31 +7,7 @@ this repository contains the full copyright notices and license terms. --> product.template - - - - - - - - ]]> - + template_form diff --git a/setup.py b/setup.py index 297e2c7439..3218c87636 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ setup(name='trytond_product_measurements', ], package_data={ 'trytond.modules.product_measurements': (info.get('xml', []) - + ['tryton.cfg', 'locale/*.po']), + + ['tryton.cfg', 'view/*.xml', 'locale/*.po']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', diff --git a/view/template_form.xml b/view/template_form.xml new file mode 100644 index 0000000000..3eb333f650 --- /dev/null +++ b/view/template_form.xml @@ -0,0 +1,22 @@ + + + + + + + +