diff --git a/developer_mode/__manifest__.py b/developer_mode/__manifest__.py index b9056a670..f36baa488 100644 --- a/developer_mode/__manifest__.py +++ b/developer_mode/__manifest__.py @@ -2,7 +2,7 @@ ############################################################################## # # Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). +# Copyright (C) 2017-TODAY Cybrosys Technologies(). # Author: Nilmar Shereef() # you can modify it under the terms of the GNU LESSER # GENERAL PUBLIC LICENSE (LGPL v3), Version 3. @@ -23,7 +23,7 @@ { 'name': "Automatic Developer Mode", 'summary': """Automatically Activate Developer Mode & Running DB Name on Left Top""", - 'version': '10.0.2.0.0', + 'version': '10.0.3.0.0', 'author': 'Cybrosys Techno Solutions', 'website': "http://www.cybrosys.com", 'company': 'Cybrosys Techno Solutions', diff --git a/developer_mode/__manifest__.py~ b/developer_mode/__manifest__.py~ new file mode 100644 index 000000000..b9056a670 --- /dev/null +++ b/developer_mode/__manifest__.py~ @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2009-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': "Automatic Developer Mode", + 'summary': """Automatically Activate Developer Mode & Running DB Name on Left Top""", + 'version': '10.0.2.0.0', + 'author': 'Cybrosys Techno Solutions', + 'website': "http://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'category': 'Extra Tools', + 'depends': ['base', 'web', 'base_setup'], + 'data': [ + 'views/web_view.xml', + 'security/security_data.xml', + 'views/developer_mode_view.xml', + 'views/ir_rule_view.xml', + 'data/cybro_developer_data.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/developer_mode/static/description/banner.jpg b/developer_mode/static/description/banner.jpg index fb32832ef..6b7012c6a 100644 Binary files a/developer_mode/static/description/banner.jpg and b/developer_mode/static/description/banner.jpg differ diff --git a/developer_mode/static/description/index.html~ b/developer_mode/static/description/index.html~ deleted file mode 100644 index dd62a3be2..000000000 --- a/developer_mode/static/description/index.html~ +++ /dev/null @@ -1,96 +0,0 @@ -
-
-
-

Automatic Developer Mode

-

Developers! Keep up your smile..

-

Cybrosys Technologies , www.cybrosys.com

-
-
-

Developers, So Many Reasons to Smile:

-
    -
  •    Automatically Trigger Developer Mode.
  • -
  •    Showing Running DB On Left Top.
  • -
  •    Update Modules Easily.
  • -
  •    Custom Email Template for Sending Mail with Failure Details.
  • -
-
-
-
- -
-
-
-

-

This module make you free from activate developer mode operations over and over(It is very boring when we switching many users). - When you login, It will trigger the DEVELOPER MODE Automatically.

-

-
-
-
- -
-
-
-

-

As shown here, Simply automate the developer mode. It help developer in several perspective. NOTE That, you have to re-login after the module installation

-

-
-
-
- -
-
-
-
- -
-
-
-

-

The developer can identify running DB easily.

-

-
-
-
- -
-
-
-
- -
-
-
-

-

Easily update any module without opening the form.

-

-
-
-
- -
-
-
-
- -
-

Need Any Help?

- - -
- - - - - - diff --git a/developer_mode/views/developer_mode_view.xml b/developer_mode/views/developer_mode_view.xml index b167606e6..4b5c279da 100644 --- a/developer_mode/views/developer_mode_view.xml +++ b/developer_mode/views/developer_mode_view.xml @@ -19,7 +19,7 @@ - + ir.module.module.form ir.module.module @@ -51,7 +51,7 @@ - + ir.module.module.tree ir.module.module @@ -82,7 +82,7 @@ - + Modules Kanban ir.module.module diff --git a/pos_restaurant_floor_facility/static/src/js/facility_floor.js b/pos_restaurant_floor_facility/static/src/js/facility_floor.js index a8d75d907..ac6b9d63d 100644 --- a/pos_restaurant_floor_facility/static/src/js/facility_floor.js +++ b/pos_restaurant_floor_facility/static/src/js/facility_floor.js @@ -1,6 +1,6 @@ odoo.define('pos_restaurant_floor_facility.floor_facility_rate_addition', function (require) { 'use strict'; -alert("aaaaaaaa"); + var models = require('point_of_sale.models'); var screens = require('point_of_sale.screens'); var restaurant = require('pos_restaurant.floors'); @@ -17,4 +17,4 @@ screens.ProductScreenWidget.include({ } } }); -}); \ No newline at end of file +}); diff --git a/pos_restaurant_floor_facility/static/src/js/facility_floor.js~ b/pos_restaurant_floor_facility/static/src/js/facility_floor.js~ new file mode 100644 index 000000000..a8d75d907 --- /dev/null +++ b/pos_restaurant_floor_facility/static/src/js/facility_floor.js~ @@ -0,0 +1,20 @@ +odoo.define('pos_restaurant_floor_facility.floor_facility_rate_addition', function (require) { +'use strict'; +alert("aaaaaaaa"); +var models = require('point_of_sale.models'); +var screens = require('point_of_sale.screens'); +var restaurant = require('pos_restaurant.floors'); + +models.load_fields("restaurant.floor",['facility_service_percentage']); + +screens.ProductScreenWidget.include({ + click_product: function(product) { + if(product.to_weight && this.pos.config.iface_electronic_scale){ + this.gui.show_screen('scale',{product: product}); + }else{ + this.pos.get_order().add_product(product,{ price: product.price + + (product.price * this.pos.table.floor.facility_service_percentage)/100}); + } + } +}); +}); \ No newline at end of file