From c53efc83f81ebe2d58078cbf66d275c786af6435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 3 Feb 2009 18:59:12 +0100 Subject: [PATCH] Fix for new field attributes names --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index af95e21a16..f6174aac90 100644 --- a/invoice.py +++ b/invoice.py @@ -190,7 +190,7 @@ class Invoice(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]