From e49847ed19a0e4a37ea324a2cfb9cb19aefadbef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Wed, 7 Oct 2015 10:47:48 +0200 Subject: [PATCH] [FIX] purchase : bad call to message_post The body of the mail.message was the list ids instead of a string. This is better now ! --- addons/purchase/purchase.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index f8fee498e41..477bc01909d 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -768,8 +768,7 @@ class ProcurementOrder(models.Model): res = [] for procurement in self: if not procurement.product_id.seller_ids: - self.message_post([procurement.id],\ - _('No vendor associated to product %s. Please set one to fix this procurement.') % (procurement.product_id.name)) + procurement.message_post(body=_('No vendor associated to product %s. Please set one to fix this procurement.') % (procurement.product_id.name)) continue supplier = procurement.product_id.seller_ids[0] partner = supplier.name