diff --git a/addons/sale/__manifest__.py b/addons/sale/__manifest__.py index ddc91098081..9ab85a2c7c9 100644 --- a/addons/sale/__manifest__.py +++ b/addons/sale/__manifest__.py @@ -14,6 +14,8 @@ This module contains all the common features of Sales Management and eCommerce. 'data': [ 'security/sale_security.xml', 'security/ir.model.access.csv', + + 'report/account_invoice_report_views.xml', 'report/sale_report.xml', 'report/sale_report_views.xml', 'report/sale_report_templates.xml', diff --git a/addons/sale/report/account_invoice_report_views.xml b/addons/sale/report/account_invoice_report_views.xml new file mode 100644 index 00000000000..08df6ff4882 --- /dev/null +++ b/addons/sale/report/account_invoice_report_views.xml @@ -0,0 +1,18 @@ + + + + + account.invoice.report.search.inherit + account.invoice.report + + + + + + + + + + + + diff --git a/addons/sale/views/crm_team_views.xml b/addons/sale/views/crm_team_views.xml index e702e094449..ef2b29ada3f 100644 --- a/addons/sale/views/crm_team_views.xml +++ b/addons/sale/views/crm_team_views.xml @@ -1,53 +1,25 @@ - - crm.team.form - crm.team - 9 - - - -
-
-
- - -
-
- - account.invoice.report.search.inherit - account.invoice.report - - - - - - - - - - - - - - New Quotation - sale.order - ir.actions.act_window - form - { - 'search_default_team_id': [active_id], - 'default_team_id': active_id, - 'default_user_id': uid, - } + + crm.team.form + crm.team + 9 + + + +
+
+
+ +
-
@@ -140,6 +112,21 @@
+ + + New Quotation + sale.order + ir.actions.act_window + form + { + 'search_default_team_id': [active_id], + 'default_team_id': active_id, + 'default_user_id': uid, + } + + + + ['|', ('res_model', '=', False), ('res_model', 'in', ['sale.order', 'res.partner', 'product.template', 'product.product'])]