Add missing context in call of ir.sequence

This commit is contained in:
Cédric Krier committed 2008-11-25 00:16:34 +01:00
1 parent a13865292e
commit 82a49f6f94
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ class Party(OSV):
values = values.copy()
if not values.get('code'):
values['code'] = self.pool.get('ir.sequence').get(
cursor, user, 'party.party')
cursor, user, 'party.party', context=context)
values['code_length'] = len(values['code'])
return super(Party, self).create(cursor, user, values, context=context)