From 7797bee5028f037edd54acb3237bef48d3b37808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 14 Nov 2008 10:36:15 +0100 Subject: [PATCH] Rename check_adresses into check_for_quotation to allow more check --- purchase.py | 2 +- purchase.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/purchase.py b/purchase.py index 85d4448577..9a37d6e1f0 100644 --- a/purchase.py +++ b/purchase.py @@ -602,7 +602,7 @@ class Purchase(OSV): return super(Purchase, self).copy(cursor, user, purchase_id, default=default, context=context) - def check_adresses(self, cursor, user, purchase_id, context=None): + def check_for_quotation(self, cursor, user, purchase_id, context=None): purchase = self.browse(cursor, user, purchase_id, context=context) if not (purchase.invoice_address and purchase.contact_address): self.raise_user_error(cursor, 'addresses_required', context=context) diff --git a/purchase.xml b/purchase.xml index 537afba2fd..73ca6f30a1 100644 --- a/purchase.xml +++ b/purchase.xml @@ -247,7 +247,7 @@ this repository contains the full copyright notices and license terms. --> Quotation function - check_adresses() set_reference() write({'state': 'quotation'}) + check_for_quotation() set_reference() write({'state': 'quotation'}) Confirmed