fixup! [12.0] Add base_fileurl_field

This commit is contained in:
Akim Juillerat
2019-03-13 20:04:41 +01:00
parent 2d8d1f808b
commit 979e76c353
6 changed files with 33 additions and 2 deletions
@@ -3,7 +3,7 @@
import logging
from odoo import _, api, exceptions, models
from odoo import models, api
_logger = logging.getLogger(__name__)
@@ -27,7 +27,7 @@ class TestFileUrlFields(TransactionCase):
with open(file_path, 'rb') as f:
self.assertEqual(base64.decodebytes(partner.url_file), f.read())
with open(image_path, 'rb') as image:
with open(image_path, 'rb') as i:
self.assertEqual(base64.decodebytes(partner.url_image), i.read())
partner2 = self.env.ref('base.partner_admin')