From c3e201b7080fc4382a27e5cbb3decd77a71c9911 Mon Sep 17 00:00:00 2001 From: oihane Date: Wed, 5 Aug 2015 12:29:15 +0200 Subject: [PATCH] [IMP] Do not erase previous notes --- mrp_production_partner_note/models/procurement_order.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mrp_production_partner_note/models/procurement_order.py b/mrp_production_partner_note/models/procurement_order.py index 165faa9d6..aa8c91c5d 100644 --- a/mrp_production_partner_note/models/procurement_order.py +++ b/mrp_production_partner_note/models/procurement_order.py @@ -15,5 +15,7 @@ class ProcurementOrder(models.Model): sale_proc = procurement.move_dest_id.procurement_id mrp_notes = sale_proc.sale_line_id.order_id.partner_id.mrp_notes if mrp_notes: - res['notes'] = mrp_notes + res['notes'] = ( + (res.get('notes', '') + "\n") if res.get('notes') else '') + res['notes'] += mrp_notes return res