diff --git a/ext/custom-addons/dp_reports/models/report_helper.py b/ext/custom-addons/dp_reports/models/report_helper.py index 462cac2c..4810c15f 100644 --- a/ext/custom-addons/dp_reports/models/report_helper.py +++ b/ext/custom-addons/dp_reports/models/report_helper.py @@ -15,10 +15,13 @@ class ReportHelper(models.AbstractModel): elif not temp and idx != 0: return False else: - temp = temp.__getattribute__(field) - if not temp: - return False - return True + if len(temp) > 1: + temp = temp[0].__getattribute__(field) + else: + temp = temp.__getattribute__(field) + if temp: + return True + return False @api.model def _formatLang(self, value, currency=True): diff --git a/ext/custom-addons/dp_reports/reports/report_templates.xml b/ext/custom-addons/dp_reports/reports/report_templates.xml index 85df0cb9..ad221e47 100644 --- a/ext/custom-addons/dp_reports/reports/report_templates.xml +++ b/ext/custom-addons/dp_reports/reports/report_templates.xml @@ -56,7 +56,7 @@
-| - - + kg | - - + kg |
@@ -188,6 +187,21 @@
+
+ Bitte prüfen Sie bei Anlieferung sofort die Verkackung bzw. Ware auf Beschädigung! + Gültigkeit: 14 Tage ab Ausstellungsdatum + ++ Auftrag erteilt am: ____________________ + ++ Unterschrift: ____________________ + + |