From 16efdbcc66dbe354b84cf7e27a771e614e2532bf Mon Sep 17 00:00:00 2001 From: Christophe CHAUVET Date: Fri, 27 Jan 2017 11:59:10 +0100 Subject: [PATCH] [TEST] Add test from reproduce traceback from website_crm module --- base_phone/test/phonenum.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base_phone/test/phonenum.yml b/base_phone/test/phonenum.yml index 27aa6d7..ed17b18 100644 --- a/base_phone/test/phonenum.yml +++ b/base_phone/test/phonenum.yml @@ -48,3 +48,11 @@ assert name == 'Pierre Paillet', 'Wrong result for get_name_from_phone_number' name2 = self.get_name_from_phone_number(cr, uid, '0041216191010') assert name2 == u'Joël Grand-Guillaume (Camptocamp)', 'Wrong result for get_name_from_phone_number (partner2)' +- + Check country_id come from contact us form from website_crm module +- + !python {model: phone.common}: | + vals = self._generic_reformat_phonenumbers(cr, uid, [], { + 'country_id': u'74', 'phone': u'0155667788' + }, context=context) + assert vals['phone'] == '+33155667788'