From 7337a0b99bec6b7a623105970b3e41e7576e789d Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Mon, 21 Feb 2022 10:37:02 +0000 Subject: [PATCH] [MOV][IMP] product: split views by models closes odoo/odoo#84997 Signed-off-by: Victor Feyens (vfe) --- addons/product/__manifest__.py | 2 + .../views/product_pricelist_item_views.xml | 173 +++++++ .../product/views/product_pricelist_views.xml | 475 ++++++------------ .../product/views/res_country_group_views.xml | 15 + 4 files changed, 339 insertions(+), 326 deletions(-) create mode 100644 addons/product/views/product_pricelist_item_views.xml create mode 100644 addons/product/views/res_country_group_views.xml diff --git a/addons/product/__manifest__.py b/addons/product/__manifest__.py index 9b6d562d466..4e014c5150b 100644 --- a/addons/product/__manifest__.py +++ b/addons/product/__manifest__.py @@ -39,10 +39,12 @@ Print product labels with barcode. 'views/product_attribute_views.xml', 'views/product_category_views.xml', 'views/product_packaging_views.xml', + 'views/product_pricelist_item_views.xml', 'views/product_pricelist_views.xml', 'views/product_supplierinfo_views.xml', 'views/product_template_views.xml', 'views/product_tag_views.xml', + 'views/res_country_group_views.xml', 'views/res_partner_views.xml', 'report/product_reports.xml', diff --git a/addons/product/views/product_pricelist_item_views.xml b/addons/product/views/product_pricelist_item_views.xml new file mode 100644 index 00000000000..4bdd8895407 --- /dev/null +++ b/addons/product/views/product_pricelist_item_views.xml @@ -0,0 +1,173 @@ + + + + + product.pricelist.item.search + product.pricelist.item + + + + + + + + + + + + + + + + + + + + product.pricelist.item.tree + product.pricelist.item + 10 + + + + + + + + + + + + + + + + product.pricelist.item.tree + product.pricelist.item + 100 + + + + + + + + + + + + + + + + + + + + + product.pricelist.item.form + product.pricelist.item + +
+ + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
diff --git a/addons/product/views/product_pricelist_views.xml b/addons/product/views/product_pricelist_views.xml index d27939b4777..301f8152e37 100644 --- a/addons/product/views/product_pricelist_views.xml +++ b/addons/product/views/product_pricelist_views.xml @@ -1,341 +1,164 @@ - - - product.pricelist.item.search - product.pricelist.item - - - - - - - - - - - - - - - - - + + product.pricelist.search + product.pricelist + + + + + + + + - - product.pricelist.item.tree - product.pricelist.item - 10 - - - - - - - - - + + product.pricelist.tree + product.pricelist + + + + + + + - - + + - - - product.pricelist.item.tree - product.pricelist.item - 100 - - - - - - - - - - - - - - - - - - - - - product.pricelist.item.form - product.pricelist.item - -
- - - - - - -
-