[FIX] fixed an "unsupported operand type(s) for +: 'bool' and 'str'" error.

bzr revid: olt@tinyerp.com-20090921085934-zgzbsgopwdbcbjhx
This commit is contained in:
olt@tinyerp.com
2009-09-21 10:59:34 +02:00
parent 09f5623eba
commit 9dee415bef
+4 -4
View File
@@ -40,7 +40,7 @@ merge_form = """<?xml version="1.0"?>
- lines will only be merged if:
* they are exactly the same except for the quantity and unit</label>
</form>
"""
"""
merge_fields = {
}
@@ -98,9 +98,9 @@ def _merge_orders(self, cr, uid, data, context):
else:
#order_infos['name'] += ', %s' % porder.name
if porder.notes:
order_infos['notes'] += ('\n%s' % (porder.notes,))
order_infos['notes'] = (order_infos['notes'] or '') + ('\n%s' % (porder.notes,))
if porder.origin:
order_infos['origin'] = order_infos['origin'] + ' ' + porder.origin
order_infos['origin'] = (order_infos['origin'] or '') + ' ' + porder.origin
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'))
@@ -156,7 +156,7 @@ class merge_orders(wizard.interface):
states = {
'init': {
'actions': [],
'result': {'type': 'form', 'arch' : merge_form, 'fields' : merge_fields, 'state' : [('end', 'Cancel'), ('merge', 'Merge orders') ]}
'result': {'type': 'form', 'arch': merge_form, 'fields' : merge_fields, 'state' : [('end', 'Cancel'), ('merge', 'Merge orders') ]}
},
'merge': {
'actions': [],