[IMP] <mrp_production_partner_note> string formatting

This commit is contained in:
oihane
2015-08-05 13:12:10 +02:00
parent c3e201b708
commit 8ee2bc595f

View File

@@ -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