py3 support

This commit is contained in:
Mariano A. D'Angelo 2019-01-16 22:03:26 -03:00 committed by GitHub
parent 00d0590e18
commit 36a8981c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,10 @@
# Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
from odoo import fields, models
from urllib import parse
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
class AddUrlWizard(models.Model):
_name = 'ir.attachment.add_url'