diff --git a/ext/custom-addons/dp_custom/models/material_type.py b/ext/custom-addons/dp_custom/models/material_type.py index 6f95d4bd..7f1ae414 100644 --- a/ext/custom-addons/dp_custom/models/material_type.py +++ b/ext/custom-addons/dp_custom/models/material_type.py @@ -28,6 +28,8 @@ class MaterialType(models.Model): name = fields.Char(string='Bezeichnung', required=True) print_default_code = fields.Boolean(string='Drucke Artikelnummer', required=True, help='Definiert, ob die Artikelnummer gedruckt wird') + print_sales_pic = fields.Boolean(string='Drucke Artikelbild', default=True, required=False, help='Definiert, ob ein Artikelbild gedruckt wird (Angebot/Auftrag)') + print_production_pic = fields.Boolean(string='Drucke Produktionsbild', default=False, required=False, help='Definiert, ob ein Produktionsbild gedruckt wird (Produktionsauftrag)') _sql_constraints = [ ('name_uniq', 'unique(name)', 'Die Bezeichnung muss eindeutig sein') diff --git a/ext/custom-addons/dp_custom/models/product.py b/ext/custom-addons/dp_custom/models/product.py index 6ac72718..63cb3d53 100644 --- a/ext/custom-addons/dp_custom/models/product.py +++ b/ext/custom-addons/dp_custom/models/product.py @@ -60,6 +60,13 @@ class ProductTemplate(models.Model): manufacturing_number = fields.Char(string='Herstellnummer') product_color = fields.Char(string='Farbe') + @api.onchange('length', 'width', 'thickness') + def _onchange_measures(self): + if self.length>0 and self.width>0 and self.thickness>0: + self.volume = self.length*self.width*self.thickness / (1000*1000*1000) + elif self.length>0 and self.width>0 and self.height>0: + self.volume = self.length*self.width*self.height / (1000*1000*1000) + @api.model def create_product(self, vals): """ diff --git a/ext/custom-addons/dp_custom/views/account_views.xml b/ext/custom-addons/dp_custom/views/account_views.xml index d1138cec..9eefaea5 100644 --- a/ext/custom-addons/dp_custom/views/account_views.xml +++ b/ext/custom-addons/dp_custom/views/account_views.xml @@ -7,7 +7,7 @@ - + diff --git a/ext/custom-addons/dp_custom/views/material_type_views.xml b/ext/custom-addons/dp_custom/views/material_type_views.xml index adb1fc84..bf239aea 100644 --- a/ext/custom-addons/dp_custom/views/material_type_views.xml +++ b/ext/custom-addons/dp_custom/views/material_type_views.xml @@ -9,6 +9,8 @@ + + @@ -21,6 +23,8 @@ + + diff --git a/ext/custom-addons/dp_custom/views/sale_views.xml b/ext/custom-addons/dp_custom/views/sale_views.xml index 695cda71..f3a6c259 100644 --- a/ext/custom-addons/dp_custom/views/sale_views.xml +++ b/ext/custom-addons/dp_custom/views/sale_views.xml @@ -51,9 +51,11 @@ + + + + diff --git a/ext/custom-addons/dp_custom/views/stock_views.xml b/ext/custom-addons/dp_custom/views/stock_views.xml index e974a8a8..43066eb0 100644 --- a/ext/custom-addons/dp_custom/views/stock_views.xml +++ b/ext/custom-addons/dp_custom/views/stock_views.xml @@ -9,7 +9,7 @@ - +
diff --git a/ext/custom-addons/dp_reports_sale/reports/sale.xml b/ext/custom-addons/dp_reports_sale/reports/sale.xml index b6d2ee6b..d423e1aa 100644 --- a/ext/custom-addons/dp_reports_sale/reports/sale.xml +++ b/ext/custom-addons/dp_reports_sale/reports/sale.xml @@ -91,11 +91,20 @@
- - Lieferdatum: - - + + + Lieferdatum: + + + + + + Gültig bis: + + +
Telefon: @@ -268,9 +277,17 @@ Austausch.

-

- Gültigkeit: 14 Tage ab Ausstellungsdatum -

+ +

+ Angebot gültig bis: + +

+
+ +

+ Gültigkeit: 14 Tage ab Ausstellungsdatum +

+

Auftrag erteilt am: ____________________

diff --git a/ext/custom-addons/tz_reports_production/reports/report_production.xml b/ext/custom-addons/tz_reports_production/reports/report_production.xml index d6127694..16b678c1 100644 --- a/ext/custom-addons/tz_reports_production/reports/report_production.xml +++ b/ext/custom-addons/tz_reports_production/reports/report_production.xml @@ -1,7 +1,7 @@ - +