From 12ef8b63120f09bbd24cae57ccaaf1292fc4a9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 29 Nov 2017 16:20:32 +0100 Subject: [PATCH] [MOV] sale: split data to separate mail data from other data It is simpler to have data split by main model or application like we already do for models and views. It allows to easily have an overview of data a module holds. As we will work on mail related data like adding activities or tweaking subtypes and templates, having them all in a single file and not lost between other data helps finding and working with it. This commit only moves code. No functional change should occur. --- addons/sale/__manifest__.py | 6 +-- .../{mail_template_data.xml => mail_data.xml} | 43 +++++++++++++++++++ addons/sale/data/sale_data.xml | 43 ------------------- 3 files changed, 46 insertions(+), 46 deletions(-) rename addons/sale/data/{mail_template_data.xml => mail_data.xml} (54%) diff --git a/addons/sale/__manifest__.py b/addons/sale/__manifest__.py index 5860dabd53c..ca5786aefe9 100644 --- a/addons/sale/__manifest__.py +++ b/addons/sale/__manifest__.py @@ -11,14 +11,14 @@ This module contains all the common features of Sales Management and eCommerce. """, 'depends': ['sales_team', 'account', 'portal'], 'data': [ - 'data/ir_sequence_data.xml', - 'data/sale_data.xml', 'report/sale_report.xml', - 'data/mail_template_data.xml', 'report/sale_report_views.xml', 'report/sale_report_templates.xml', 'report/invoice_report_templates.xml', 'report/report_all_channels_sales_views.xml', + 'data/ir_sequence_data.xml', + 'data/sale_data.xml', + 'data/mail_data.xml', 'security/sale_security.xml', 'security/ir.model.access.csv', 'wizard/sale_make_invoice_advance_views.xml', diff --git a/addons/sale/data/mail_template_data.xml b/addons/sale/data/mail_data.xml similarity index 54% rename from addons/sale/data/mail_template_data.xml rename to addons/sale/data/mail_data.xml index b1ee2412b94..238bb55d2f2 100644 --- a/addons/sale/data/mail_template_data.xml +++ b/addons/sale/data/mail_data.xml @@ -1,6 +1,49 @@ + + + Quotation sent + sale.order + + Quotation sent + + + Sales Order Confirmed + sale.order + + Quotation confirmed + + + + + Quotation sent + 20 + crm.team + + team_id + + + Sales Order Confirmed + 21 + crm.team + + team_id + + + Invoice Created + 22 + crm.team + + team_id + + + Invoice Confirmed + 23 + crm.team + + team_id + diff --git a/addons/sale/data/sale_data.xml b/addons/sale/data/sale_data.xml index a036f5acef2..651931d8625 100644 --- a/addons/sale/data/sale_data.xml +++ b/addons/sale/data/sale_data.xml @@ -7,49 +7,6 @@ sale.report - - - Quotation sent - sale.order - - Quotation sent - - - Sales Order Confirmed - sale.order - - Quotation confirmed - - - - - Quotation sent - 20 - crm.team - - team_id - - - Sales Order Confirmed - 21 - crm.team - - team_id - - - Invoice Created - 22 - crm.team - - team_id - - - Invoice Confirmed - 23 - crm.team - - team_id - Services