[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 !
This commit is contained in:
Jérome Maes
2015-10-07 16:37:03 +02:00
parent c11ec38c7b
commit e49847ed19
+1 -2
View File
@@ -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