forked from Techsystech/web
[10.0][MIG] Migrate web_widget_image_webcam v10
parent
038c5cc07e
commit
23342e1fd1
|
@ -25,17 +25,6 @@ Set the configuration parameter ``web_widget_image_webcam.flash_fallback_mode``
|
|||
|
||||
Its done! Now this module also work with websites without SSL / HTTPS.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To use this module, you need to:
|
||||
|
||||
#. Go to ...
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/162/9.0
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
|
@ -51,6 +40,7 @@ Contributors
|
|||
------------
|
||||
|
||||
* Siddharth Bhalgami <siddharth.bhalgami@techreceptives.com>
|
||||
* Kaushal Prajapati <kbprajapati@live.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
|
|
@ -4,11 +4,12 @@
|
|||
{
|
||||
"name": "Web Widget - Image WebCam",
|
||||
"summary": "Allows to take image with WebCam",
|
||||
"version": "9.0.1.0.0",
|
||||
"version": "10.0.1.0.0",
|
||||
"category": "web",
|
||||
"website": "https://www.techreceptives.com",
|
||||
"author": "Tech Receptives, "
|
||||
"Odoo Community Association (OCA)",
|
||||
"Odoo Community Association (OCA), "
|
||||
"Kaushal Prajapati",
|
||||
"license": "LGPL-3",
|
||||
"data": [
|
||||
"views/assets.xml",
|
|
@ -2,11 +2,13 @@
|
|||
Copyright 2016 Siddharth Bhalgami <siddharth.bhalgami@techreceptives.com>
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
|
||||
*/
|
||||
.openerp .oe_form .oe_form_field_image .oe_form_field_image_controls
|
||||
.oe_form_binary_file_web_cam {
|
||||
.o_form_view.o_form_editable .o_form_field_image .o_form_image_controls
|
||||
.o_form_binary_file_web_cam {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.o_form_view .o_form_field_image .o_form_image_controls > .fa{
|
||||
margin:3px;
|
||||
}
|
||||
.live_webcam_outer_div, .webcam_result_outer_div {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ odoo.define('web_widget_image_webcam.webcam_widget', function(require) {
|
|||
swfURL: '/web_widget_image_webcam/static/src/js/webcam.swf',
|
||||
});
|
||||
|
||||
self.$el.find('.oe_form_binary_file_clear').removeClass('col-md-offset-5');
|
||||
self.$el.find('.o_form_binary_file_web_cam').removeClass('col-md-offset-5');
|
||||
|
||||
new Model('ir.config_parameter').call('get_param', ['web_widget_image_webcam.flash_fallback_mode', false]).
|
||||
then(function(default_flash_fallback_mode) {
|
||||
|
@ -50,7 +50,7 @@ odoo.define('web_widget_image_webcam.webcam_widget', function(require) {
|
|||
}
|
||||
});
|
||||
|
||||
self.$el.find('.oe_form_binary_file_web_cam').off().on('click', function(){
|
||||
self.$el.find('.o_form_binary_file_web_cam').off().on('click', function(){
|
||||
// Init Webcam
|
||||
new Dialog(self, {
|
||||
size: 'large',
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
<template id="template" xml:space="preserve">
|
||||
|
||||
<t t-extend="FieldBinaryImage">
|
||||
<t t-jquery=".oe_form_binary_file_edit" t-operation="after">
|
||||
<a class="fa fa-eye fa-1g col-md-4 oe_form_binary_file_web_cam" title="WebCam"></a>
|
||||
<t t-jquery=".o_select_file_button" t-operation="after">
|
||||
<span class="fa fa-eye o_form_binary_file_web_cam" title="WebCam"/>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
|
@ -14,11 +14,11 @@
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-5 live_webcam_outer_div">
|
||||
<div id="live_webcam"></div>
|
||||
<div id="live_webcam"/>
|
||||
</div>
|
||||
<div class="col-md-2 mt64 direction_icon fa fa-angle-right fa-8x"></div>
|
||||
<div class="col-md-2 mt64 direction_icon fa fa-angle-right fa-8x"/>
|
||||
<div class="col-md-5 webcam_result_outer_div">
|
||||
<div id="webcam_result"></div>
|
||||
<div id="webcam_result"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue