the party has a country on the adress and the number is rewrite
Country = Model.get('country.country')
the_country, = Country.find([('code', '=', 'CA')])
party.addresses.append(Address(street=args.adresse,postal_code=args.cp, city=args.ville, country=the_country,invoice=True,delivery=True))
party.save()
# Party should be saved with an adresse in Canada
party.contact_mechanisms.append(ContactMechanism(type='phone',value='819-944-2588'))
==> Le numéro de téléphone « +33 8199442588 » du tiers « tartempion » n'est pas valide.
proteus-tryton tries to validate it as a french (???) number. i tried