Fix: create empty context if missing

This commit is contained in:
Bertrand Chenal
2008-09-18 16:16:22 +02:00
parent 8f09e8cb3a
commit 751b87f555
+1 -1
View File
@@ -108,7 +108,7 @@ class CreatePurchase(Wizard):
if (key[0], key[1]) == (form['party'],
form['company']):
val['payment_term'] = form['payment_term']
local_context = context.copy()
local_context = context and context.copy() or {}
local_context['company'] = form['company']
party_obj.write(
cursor, user, form['party'],