From 8ee2bc595ffb067c997d98d9df0cead99caedb6a Mon Sep 17 00:00:00 2001 From: oihane Date: Wed, 5 Aug 2015 13:12:10 +0200 Subject: [PATCH] [IMP] string formatting --- mrp_production_partner_note/models/procurement_order.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mrp_production_partner_note/models/procurement_order.py b/mrp_production_partner_note/models/procurement_order.py index aa8c91c5d..30bd362cd 100644 --- a/mrp_production_partner_note/models/procurement_order.py +++ b/mrp_production_partner_note/models/procurement_order.py @@ -16,6 +16,7 @@ class ProcurementOrder(models.Model): mrp_notes = sale_proc.sale_line_id.order_id.partner_id.mrp_notes if mrp_notes: res['notes'] = ( - (res.get('notes', '') + "\n") if res.get('notes') else '') - res['notes'] += mrp_notes + res.get('notes') and + ('{other}\n'.format(other=res.get('notes', ''))) or '') + res['notes'] += '{mine}'.format(mine=mrp_notes) return res