From e47c19d36162f0d596d2e7ccb2340b3cc071ab03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 10 Jan 2023 01:04:55 +0100 Subject: [PATCH] Re-order XML record definition The records are grouped per model inside the parent XML file. Closes #2722 --- modules/purchase/invoice.xml | 39 ++++++++ modules/purchase/product.xml | 11 +++ modules/purchase/purchase.xml | 168 ++++++++++++++-------------------- modules/purchase/stock.xml | 125 +++++++++++-------------- modules/purchase/tryton.cfg | 1 + modules/sale/invoice.xml | 38 ++++++++ modules/sale/party.xml | 32 +++---- modules/sale/product.xml | 11 +++ modules/sale/sale.xml | 131 +++++++------------------- modules/sale/stock.xml | 27 ++++++ modules/sale/tryton.cfg | 1 + 11 files changed, 300 insertions(+), 284 deletions(-) create mode 100644 modules/purchase/invoice.xml create mode 100644 modules/sale/invoice.xml diff --git a/modules/purchase/invoice.xml b/modules/purchase/invoice.xml new file mode 100644 index 0000000000..695b453481 --- /dev/null +++ b/modules/purchase/invoice.xml @@ -0,0 +1,39 @@ + + + + + + Invoices + account.invoice + + + + + form_relate + purchase.purchase,-1 + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/purchase/product.xml b/modules/purchase/product.xml index d63e0d8e89..485a94ac8a 100644 --- a/modules/purchase/product.xml +++ b/modules/purchase/product.xml @@ -3,6 +3,17 @@ this repository contains the full copyright notices and license terms. --> + + product.template + + template_form + + + product.template + + template_tree + + product.product tree diff --git a/modules/purchase/purchase.xml b/modules/purchase/purchase.xml index e05b5133d4..24fdc9c280 100644 --- a/modules/purchase/purchase.xml +++ b/modules/purchase/purchase.xml @@ -57,47 +57,6 @@ this repository contains the full copyright notices and license terms. --> purchase_tree - - Shipments - stock.shipment.in - - - - form_relate - purchase.purchase,-1 - - - - Returns - stock.shipment.in.return - - - - form_relate - purchase.purchase,-1 - - - - Invoices - account.invoice - - - - - form_relate - purchase.purchase,-1 - - - purchase.handle.shipment.exception.ask form @@ -210,6 +169,58 @@ this repository contains the full copyright notices and license terms. --> + + Purchases + purchase.purchase + + + + + + + + + + + + + + form_relate + stock.shipment.in,-1 + + + + + Purchases + purchase.purchase + + + + + + + + + + + + + + form_relate + stock.shipment.in.return,-1 + + + + + + + + + + + + cancel Cancel @@ -387,6 +407,15 @@ this repository contains the full copyright notices and license terms. --> purchase_line_tree_sequence + + + + + + + + + purchase.product_supplier form @@ -488,17 +517,6 @@ this repository contains the full copyright notices and license terms. --> - - product.template - - template_form - - - product.template - - template_tree - - purchase.return_purchase.start form @@ -552,51 +570,5 @@ this repository contains the full copyright notices and license terms. --> pyson="1"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modules/purchase/stock.xml b/modules/purchase/stock.xml index 02d07897c7..383e8c1ada 100644 --- a/modules/purchase/stock.xml +++ b/modules/purchase/stock.xml @@ -10,6 +10,15 @@ this repository contains the full copyright notices and license terms. --> move_list_shipment + + + + + + + + + stock.location @@ -22,76 +31,6 @@ this repository contains the full copyright notices and license terms. --> move_list_shipment_in - - - - - - - - - - - - - - - - - - - - Purchases - purchase.purchase - - - - - - - - - - - - - - form_relate - stock.shipment.in,-1 - - - - - Purchases - purchase.purchase - - - - - - - - - - - - - - form_relate - stock.shipment.in.return,-1 - - - Moves stock.move @@ -115,5 +54,51 @@ this repository contains the full copyright notices and license terms. --> purchase.purchase,-1 + + + Shipments + stock.shipment.in + + + + form_relate + purchase.purchase,-1 + + + + + + + + + + + + + + Returns + stock.shipment.in.return + + + + form_relate + purchase.purchase,-1 + + + + + + + + + + + diff --git a/modules/purchase/tryton.cfg b/modules/purchase/tryton.cfg index e20c23cbf1..19025e9df9 100644 --- a/modules/purchase/tryton.cfg +++ b/modules/purchase/tryton.cfg @@ -19,4 +19,5 @@ xml: party.xml stock.xml product.xml + invoice.xml message.xml diff --git a/modules/sale/invoice.xml b/modules/sale/invoice.xml new file mode 100644 index 0000000000..958e81be84 --- /dev/null +++ b/modules/sale/invoice.xml @@ -0,0 +1,38 @@ + + + + + + Invoices + account.invoice + + + + form_relate + sale.sale,-1 + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/sale/party.xml b/modules/sale/party.xml index 23475514bd..87cfb22ddd 100644 --- a/modules/sale/party.xml +++ b/modules/sale/party.xml @@ -3,25 +3,23 @@ this repository contains the full copyright notices and license terms. --> - - Sales - sale.sale - - + + party.party + + party_form - - form_relate - party.party,-1 - - - - - + + + Parties associated to Sales + sale.open_customer + diff --git a/modules/sale/product.xml b/modules/sale/product.xml index 26a2e5d77b..bd39a1776a 100644 --- a/modules/sale/product.xml +++ b/modules/sale/product.xml @@ -3,6 +3,17 @@ this repository contains the full copyright notices and license terms. --> + + product.template + + template_form + + + product.template + + template_tree + + product.product tree diff --git a/modules/sale/sale.xml b/modules/sale/sale.xml index 1a56ee32fb..d677893379 100644 --- a/modules/sale/sale.xml +++ b/modules/sale/sale.xml @@ -94,19 +94,6 @@ this repository contains the full copyright notices and license terms. --> sale.sale,-1 - - Invoices - account.invoice - - - - form_relate - sale.sale,-1 - - Sales @@ -263,6 +250,26 @@ this repository contains the full copyright notices and license terms. --> + + Sales + sale.sale + + + + + form_relate + party.party,-1 + + + + + + + @@ -279,6 +286,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + cancel Cancel @@ -411,34 +430,6 @@ this repository contains the full copyright notices and license terms. --> sale_line_tree_sequence - - product.template - - template_form - - - product.template - - template_tree - - - - party.party - - party_form - - - Parties associated to Sales - sale.open_customer - - - sale.return_sale.start form @@ -469,63 +460,5 @@ this repository contains the full copyright notices and license terms. --> eval="Eval('context', {}).get('modify_header', False)" pyson="1"/> - - - User in companies - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/modules/sale/stock.xml b/modules/sale/stock.xml index 5b2cd70f34..a075f01b62 100644 --- a/modules/sale/stock.xml +++ b/modules/sale/stock.xml @@ -10,6 +10,15 @@ this repository contains the full copyright notices and license terms. --> move_list_shipment + + + + + + + + + Moves stock.move @@ -33,5 +42,23 @@ this repository contains the full copyright notices and license terms. --> sale.sale,-1 + + + + + + + + + + + + + + + + + + diff --git a/modules/sale/tryton.cfg b/modules/sale/tryton.cfg index 8efde8f247..1d7d972006 100644 --- a/modules/sale/tryton.cfg +++ b/modules/sale/tryton.cfg @@ -20,4 +20,5 @@ xml: party.xml stock.xml product.xml + invoice.xml message.xml