From c9666a6be0c6f5dafed9a64618fe31554a1e63bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 13 Mar 2013 17:06:31 +0100 Subject: [PATCH] Use separate XML files for views --- MANIFEST.in | 1 + location.xml | 25 ++----------------------- product.xml | 14 +------------- setup.py | 2 +- view/product_form.xml | 11 +++++++++++ view/product_location_form.xml | 13 +++++++++++++ view/product_location_tree.xml | 8 ++++++++ 7 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 view/product_form.xml create mode 100644 view/product_location_form.xml create mode 100644 view/product_location_tree.xml diff --git a/MANIFEST.in b/MANIFEST.in index 97a95966de..25699556d2 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/location.xml b/location.xml index 6789545296..a259918194 100644 --- a/location.xml +++ b/location.xml @@ -6,33 +6,12 @@ this repository contains the full copyright notices and license terms. --> stock.product.location form - - - stock.product.location tree - - - - - - - ]]> - + product_location_tree diff --git a/product.xml b/product.xml index 61307c8a0e..db4a307dda 100644 --- a/product.xml +++ b/product.xml @@ -6,19 +6,7 @@ this repository contains the full copyright notices and license terms. --> product.product - - - - - - - - - ]]> - + product_form diff --git a/setup.py b/setup.py index 5c70c2cff4..9d41a36621 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ setup(name='trytond_stock_product_location', ], package_data={ 'trytond.modules.stock_product_location': (info.get('xml', []) - + ['tryton.cfg', 'locale/*.po', 'label.odt']), + + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'label.odt']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', diff --git a/view/product_form.xml b/view/product_form.xml new file mode 100644 index 0000000000..a1bf6c3f84 --- /dev/null +++ b/view/product_form.xml @@ -0,0 +1,11 @@ + + + + + + + + + diff --git a/view/product_location_form.xml b/view/product_location_form.xml new file mode 100644 index 0000000000..c8d3b10ccb --- /dev/null +++ b/view/product_location_form.xml @@ -0,0 +1,13 @@ + + +
+