[11.0][MIG] web_widget_image_webcam: code migration to 11.0

This commit is contained in:
Siddharth Bhalgami
2019-07-03 11:11:04 +08:00
committed by Iván Todorovich
parent 23342e1fd1
commit 1d712951eb
9 changed files with 50 additions and 24 deletions

View File

@@ -0,0 +1,4 @@
# Copyright 2019 Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from . import ir_config_parameter

View File

@@ -0,0 +1,14 @@
# Copyright 2019 Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo.models import api, Model
class IrConfigParameter(Model):
_inherit = "ir.config_parameter"
@api.model
def get_webcam_flash_fallback_mode_config(self):
return self.sudo().get_param(
'web_widget_image_webcam.flash_fallback_mode',
default=False)