From 694d8056856ebd7d95215bde1862bc2528d4bc7b Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Tue, 3 Jul 2018 13:08:04 +0200 Subject: [PATCH] =?UTF-8?q?Zolltarif-Nummern=20in=20Rechnung=20=C3=BCberne?= =?UTF-8?q?hmen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext/custom-addons/dp_custom/models/sale.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 4b9660e8..99ede5a9 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -337,6 +337,9 @@ class SaleOrder(models.Model): if vals.get('assembly_state', False) and vals.get('assembly_state', False) == 'done': self.message_post(body='Produktion fertig') + if vals.get('message_post',False): + self.message_post(body=vals.get('message_post')) + return res @api.multi @@ -558,6 +561,7 @@ class SaleOrderLine(models.Model): res = super(SaleOrderLine, self)._prepare_invoice_line(qty) res['lot_id'] = self.lot_id.id + res['intrastat_id'] = self.intrastat_id.id return res @api.multi