From 8ee619c8a6f88f58e16e04d2dc149a68a4923c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Feb 2009 19:01:08 +0100 Subject: [PATCH] Fix for new field attributes names --- purchase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/purchase.py b/purchase.py index 8f38ebe155..178128afac 100644 --- a/purchase.py +++ b/purchase.py @@ -108,7 +108,7 @@ class Purchase(OSV): def default_payment_term(self, cursor, user, context=None): payment_term_obj = self.pool.get('account.invoice.payment_term') payment_term_ids = payment_term_obj.search(cursor, user, - self.payment_term._domain, context=context) + self.payment_term.domain, context=context) if len(payment_term_ids) == 1: return payment_term_obj.name_get(cursor, user, payment_term_ids, context=context)[0] @@ -117,7 +117,7 @@ class Purchase(OSV): def default_warehouse(self, cursor, user, context=None): location_obj = self.pool.get('stock.location') location_ids = location_obj.search(cursor, user, - self.warehouse._domain, context=context) + self.warehouse.domain, context=context) if len(location_ids) == 1: return location_obj.name_get(cursor, user, location_ids, context=context)[0]