Permalink
Browse files

🌈 file location path changed in the new version of odoo

  • Loading branch information...
RafiZz committed Nov 1, 2018
1 parent 7191178 commit 91a9e2ddef4485f7a26d2b5e1ebff837eb705e36
@@ -93,7 +93,7 @@ def binary_content(cls, xmlid=None, model='ir.attachment', id=None, field='datas
status = 301
content = module_resource_path
else:
# begin redefined part of original binary_content of odoo/base/addons/ir/ir_http
# begin redefined part of original binary_content of odoo/base/addons/models/ir_http
is_attachment = env[model]._fields[field].attachment
if is_attachment:
domain = [
@@ -1,7 +1,7 @@
import logging
from odoo import models, fields, api, tools
from odoo.addons.base.ir.ir_config_parameter import IrConfigParameter as IrConfigParameterOriginal
from odoo.addons.base.models.ir_config_parameter import IrConfigParameter as IrConfigParameterOriginal
_logger = logging.getLogger(__name__)
@@ -21,7 +21,7 @@
import re
import base64
from openerp.addons.base.ir.ir_mail_server import encode_rfc2822_address_header, encode_header, encode_header_param
from openerp.addons.base.models.ir_mail_server import encode_rfc2822_address_header, encode_header, encode_header_param
class ResUsers(models.Model):
@@ -112,7 +112,7 @@ class IrMailServer(models.Model):
def build_email(self, email_from, email_to, subject, body, email_cc=None, email_bcc=None, reply_to=False,
attachments=None, message_id=None, references=None, object_id=False, subtype='plain', headers=None,
body_alternative=None, subtype_alternative='plain'):
""" copy-pasted from openerp/addons/base/ir/ir_mail_server.py::build_email """
""" copy-pasted from openerp/addons/base/models/ir_mail_server.py::build_email """
ftemplate = '__image-%s__'
fcounter = 0
@@ -3,7 +3,7 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from odoo import models, fields, api
from odoo.addons.base.ir.ir_qweb.assetsbundle import AssetsBundle, LessStylesheetAsset
from odoo.addons.base.models.assetsbundle import AssetsBundle, LessStylesheetAsset
class Theme(models.Model):
@@ -27,7 +27,7 @@
from datetime import datetime
from openerp import SUPERUSER_ID
from openerp.http import request
from openerp.addons.base.ir.ir_cron import _intervalTypes
from openerp.addons.base.models.ir_cron import _intervalTypes
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT

0 comments on commit 91a9e2d

Please sign in to comment.