From 8fc0ec46e2ad3224e264f92b7d053c24c303a9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Feb 2009 19:02:40 +0100 Subject: [PATCH] Fix for new field attributes names --- forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forecast.py b/forecast.py index 74d18de4a0..c3d1a2cad4 100644 --- a/forecast.py +++ b/forecast.py @@ -64,7 +64,7 @@ class Forecast(OSV): def default_destination(self, cursor, user, context=None): location_obj = self.pool.get('stock.location') location_ids = location_obj.search(cursor, user, - self.destination._domain, context=context) + self.destination.domain, context=context) if len(location_ids) == 1: return location_obj.name_get(cursor, user, location_ids, context=context)[0]