From 1d085e97469ac07a75ad00f858169ef0637607b1 Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Mon, 18 Nov 2019 15:56:52 +0100 Subject: [PATCH] Redesign Sales TreeView (add 'origin') Special printout for own dealer logo (DLV,OC) --- ext/custom-addons/dp_custom/models/sale.py | 13 +- .../dp_custom/views/sale_views.xml | 6 +- .../dp_reports/reports/report_templates.xml | 259 ++++++++++++------ 3 files changed, 187 insertions(+), 91 deletions(-) diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 6ae8eaa6..f884f304 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -44,11 +44,16 @@ class SaleOrder(models.Model): ('delivered', 'Geliefert'), ('completed', 'Abgeschlossen')] + # ORDER_TYPES = [ + # ('M', 'Manuell'), + # ('D', 'DesignBox'), + # ('I', 'Industrie'), + # ('T', 'TZBox') ORDER_TYPES = [ - ('M', 'Manuell'), - ('D', 'DesignBox'), - ('I', 'Industrie'), - ('T', 'TZBox') + ('M', 'M'), + ('D', 'D'), + ('I', 'I'), + ('T', 'T') ] assembled = fields.Boolean(string='Zusammengebaut') diff --git a/ext/custom-addons/dp_custom/views/sale_views.xml b/ext/custom-addons/dp_custom/views/sale_views.xml index ffb195d3..9ec9ce8e 100644 --- a/ext/custom-addons/dp_custom/views/sale_views.xml +++ b/ext/custom-addons/dp_custom/views/sale_views.xml @@ -180,8 +180,9 @@ - + + @@ -198,8 +199,9 @@ - + + diff --git a/ext/custom-addons/dp_reports/reports/report_templates.xml b/ext/custom-addons/dp_reports/reports/report_templates.xml index f0a53d9b..94cbc7f5 100644 --- a/ext/custom-addons/dp_reports/reports/report_templates.xml +++ b/ext/custom-addons/dp_reports/reports/report_templates.xml @@ -18,6 +18,17 @@