From 040bed9133bf8567a45ec3647bb341a82aae269b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 9 Mar 2013 15:42:09 +0100 Subject: [PATCH] Use separate XML files for views --- MANIFEST.in | 1 + category.xml | 37 ++--------------- product.xml | 85 ++------------------------------------ setup.py | 2 +- uom.xml | 54 ++---------------------- view/category_form.xml | 16 +++++++ view/category_list.xml | 7 ++++ view/category_tree.xml | 8 ++++ view/product_form.xml | 16 +++++++ view/product_tree.xml | 11 +++++ view/template_form.xml | 28 +++++++++++++ view/template_tree.xml | 12 ++++++ view/uom_category_form.xml | 7 ++++ view/uom_category_tree.xml | 6 +++ view/uom_form.xml | 21 ++++++++++ view/uom_tree.xml | 12 ++++++ 16 files changed, 157 insertions(+), 166 deletions(-) create mode 100644 view/category_form.xml create mode 100644 view/category_list.xml create mode 100644 view/category_tree.xml create mode 100644 view/product_form.xml create mode 100644 view/product_tree.xml create mode 100644 view/template_form.xml create mode 100644 view/template_tree.xml create mode 100644 view/uom_category_form.xml create mode 100644 view/uom_category_tree.xml create mode 100644 view/uom_form.xml create mode 100644 view/uom_tree.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/category.xml b/category.xml index 712193a9d8..fb008df3a7 100644 --- a/category.xml +++ b/category.xml @@ -7,50 +7,19 @@ this repository contains the full copyright notices and license terms. --> product.category tree 10 - - - - - - ]]> - + category_list product.category tree 20 childs - - - - - - - ]]> - + category_tree product.category form - - - diff --git a/product.xml b/product.xml index f726a0a897..e4c61e28f3 100644 --- a/product.xml +++ b/product.xml @@ -26,104 +26,27 @@ this repository contains the full copyright notices and license terms. --> product.template tree - - - - - - - - - - - ]]> - + template_tree product.template form - - - product.product tree - - - - - - - - - - ]]> - + product_tree product.product form - - - -
- - - - - - - - - ]]> - + product_form diff --git a/setup.py b/setup.py index 5197ecfddc..63b67ed625 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ setup(name='trytond_product', ], package_data={ 'trytond.modules.product': (info.get('xml', []) - + ['tryton.cfg', 'locale/*.po', 'icons/*.svg']), + + ['tryton.cfg', 'view/*.xml', 'locale/*.po', 'icons/*.svg']), }, classifiers=[ 'Development Status :: 5 - Production/Stable', diff --git a/uom.xml b/uom.xml index 48ea756b43..540ba56d28 100644 --- a/uom.xml +++ b/uom.xml @@ -6,45 +6,12 @@ this repository contains the full copyright notices and license terms. --> product.uom tree - - - - - - - - - - - ]]> - + uom_tree product.uom form - - - Units of Measure @@ -66,26 +33,13 @@ this repository contains the full copyright notices and license terms. --> product.uom.category tree - - - - - ]]> - + uom_category_tree product.uom.category form - - - diff --git a/view/category_form.xml b/view/category_form.xml new file mode 100644 index 0000000000..8b2528550a --- /dev/null +++ b/view/category_form.xml @@ -0,0 +1,16 @@ + + +
+