mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[11.0][MIG] web_widget_image_webcam: code migration to 11.0
This commit is contained in:
committed by
Iván Todorovich
parent
23342e1fd1
commit
1d712951eb
4
web_widget_image_webcam/models/__init__.py
Normal file
4
web_widget_image_webcam/models/__init__.py
Normal 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
|
||||
14
web_widget_image_webcam/models/ir_config_parameter.py
Normal file
14
web_widget_image_webcam/models/ir_config_parameter.py
Normal 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)
|
||||
Reference in New Issue
Block a user