diff --git a/ext/custom-addons/dp_custom/models/account.py b/ext/custom-addons/dp_custom/models/account.py index 98231b1d..6d63bffa 100644 --- a/ext/custom-addons/dp_custom/models/account.py +++ b/ext/custom-addons/dp_custom/models/account.py @@ -29,6 +29,7 @@ class AccountInvoiceLine(models.Model): lot_id = fields.Many2one(comodel_name='stock.production.lot', string='Lot') weight = fields.Float(string='Gewicht', compute='_compute_weight') hide_intrastat_code = fields.Boolean('ZV', help='Zolltarifnummer verbergen') + dealer_discount = fields.Boolean(string='Händlerrabatt') @api.model def create(self, vals): diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 98bfbfb4..e8d00995 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -517,7 +517,8 @@ class SaleOrderLine(models.Model): 'quantity': 1.0, 'uom_id': self.env.ref('product.product_uom_unit').id, 'name': 'Händlerrabatt {}%'.format(discount), - 'hide_intrastat_code': True + 'hide_intrastat_code': True, + 'dealer_discount': True }) del vals['discount'] invoice_lines |= self.env['account.invoice.line'].create(vals) diff --git a/ext/custom-addons/dp_custom/views/account_views.xml b/ext/custom-addons/dp_custom/views/account_views.xml index 7140f1de..d1138cec 100644 --- a/ext/custom-addons/dp_custom/views/account_views.xml +++ b/ext/custom-addons/dp_custom/views/account_views.xml @@ -20,6 +20,7 @@ + diff --git a/ext/custom-addons/dp_reports/reports/report_templates.xml b/ext/custom-addons/dp_reports/reports/report_templates.xml index 56e67c0a..706af52d 100644 --- a/ext/custom-addons/dp_reports/reports/report_templates.xml +++ b/ext/custom-addons/dp_reports/reports/report_templates.xml @@ -118,6 +118,13 @@ +
+
+ + Die AGBs sind auf der Homepage verfügbar. + +
+
-
+
- Rechnungsdatum: + Rechnungsdatum: - +
Email: - - - Artikel: - - +
@@ -89,7 +85,7 @@ Pos. Anzahl - Gewicht + Gewicht Artikel EP @@ -102,7 +98,7 @@ - + @@ -125,7 +121,20 @@ - + + + + Zwischensumme + + + + + + + Zwischensumme + + + - + - + kg @@ -166,14 +175,16 @@ - - - + + + % +