From 82a49f6f94b9446dec5d05a2afaef0d889946786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 25 Nov 2008 00:16:34 +0100 Subject: [PATCH] Add missing context in call of ir.sequence --- party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/party.py b/party.py index 9b8f5163d5..785935bd44 100644 --- a/party.py +++ b/party.py @@ -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)