From 48d0e8b78e49995dcd3f1a038e2b0db7e713b274 Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Thu, 2 Aug 2007 10:03:53 +0000 Subject: [PATCH] Better menu for categories of parnters When merging PO, remove the False in notes bzr revid: fp@tinyerp.com-9fafbaecb8ada1be6745e6d0b1db5b10e1432067 --- addons/purchase/wizard/wizard_group.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/purchase/wizard/wizard_group.py b/addons/purchase/wizard/wizard_group.py index 3763de358bc..112954d6d2a 100644 --- a/addons/purchase/wizard/wizard_group.py +++ b/addons/purchase/wizard/wizard_group.py @@ -89,11 +89,12 @@ def _mergeOrders(self, cr, uid, data, context): 'pricelist_id': porder.pricelist_id.id, 'state': 'draft', 'order_line': {}, - 'notes': '%s' % (porder.notes,), + 'notes': '%s' % (porder.notes or '',), }) else: #order_infos['name'] += ', %s' % porder.name - order_infos['notes'] += ('\n%s' % (porder.notes,)) + if porder.notes: + order_infos['notes'] += ('\n%s' % (porder.notes,)) for order_line in porder.order_line: line_key = make_key(order_line, ('name', 'date_planned', 'taxes_id', 'price_unit', 'notes', 'product_id', 'move_dest_id', 'account_analytic_id'))