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