From aa0024dec6ed022a5be63aab83faec7ef12f4c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 22 May 2008 09:31:16 +0200 Subject: [PATCH] Remove bad duplicate default_company --- move.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/move.py b/move.py index e91678a918..fcaae74dbe 100644 --- a/move.py +++ b/move.py @@ -86,13 +86,6 @@ class Move(OSV): ] self._order[0] = ('id', 'DESC') - def default_company(self, cursor, user, context=None): - if context.get('company'): - return context.get('company') - user_obj = self.pool.get('res.user') - user = user_obj.browse(cursor, user, user, context=context) - return user.company.id - def default_to_location(self, cursor, user, context=None): if context and context.get('warehouse') and context.get('type'): wh_location = self.pool.get('stock.location').browse(