Skip to content
Permalink
Browse files

🛡 logger provoked errores in tests. odoo/odoo@2b1d3ff#diff-0a8f125a3f…

  • Loading branch information...
KolushovAlexandr committed Mar 11, 2019
1 parent f5f08fc commit 94dbb41e289a9343c30359c010f3958371450b3b
Showing with 2 additions and 1 deletion.
  1. +2 −1 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
@@ -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,

0 comments on commit 94dbb41

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.