Skip to content

Commit

Permalink
🛡️ logger provoked errores in tests. odoo/odoo@2b1d3ff#diff-0a8f125a3…
Browse files Browse the repository at this point in the history
  • Loading branch information
KolushovAlexandr committed Mar 11, 2019
1 parent f5f08fc commit 94dbb41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web_debranding/models/ir_ui_view.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import logging
from odoo.tools import mute_logger
from odoo import models, api

from .ir_translation import debrand
Expand Down Expand Up @@ -72,7 +73,7 @@ def _create_view(self, name, inherit_id, arch, noupdate=False, type='qweb'):
return view.id

try:
with self.env.cr.savepoint():
with self.env.cr.savepoint(),mute_logger('odoo.models'):
view = self.env['ir.ui.view'].create({
'name': name,
'type': type,
Expand Down

0 comments on commit 94dbb41

Please sign in to comment.