Browse Source

[CHNG]Changed Banner

pull/29/head
SHEREEF PT 8 years ago
parent
commit
b064c5d88a
  1. 4
      developer_mode/__manifest__.py
  2. 43
      developer_mode/__manifest__.py~
  3. BIN
      developer_mode/static/description/banner.jpg
  4. 96
      developer_mode/static/description/index.html~
  5. 6
      developer_mode/views/developer_mode_view.xml
  6. 2
      pos_restaurant_floor_facility/static/src/js/facility_floor.js
  7. 20
      pos_restaurant_floor_facility/static/src/js/facility_floor.js~

4
developer_mode/__manifest__.py

@ -2,7 +2,7 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Nilmar Shereef(<http://www.cybrosys.com>)
# 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',

43
developer_mode/__manifest__.py~

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Nilmar Shereef(<http://www.cybrosys.com>)
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'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,
}

BIN
developer_mode/static/description/banner.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 146 KiB

96
developer_mode/static/description/index.html~

@ -1,96 +0,0 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan">Automatic Developer Mode</h2>
<h3 class="oe_slogan">Developers! Keep up your smile..</h3>
<h4 class="oe_slogan">Cybrosys Technologies , www.cybrosys.com</h4>
</div>
<div class="oe_row oe_spaced">
<h4><p style="margin-left: 41px;"> Developers, So Many Reasons to Smile:</p></h4>
<ul>
<li style="list-style:none !important;"><span style="color:green;"> &#9786;</span>&nbsp;&nbsp; Automatically Trigger Developer Mode.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9786;</span>&nbsp;&nbsp; Showing Running DB On Left Top.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9786;</span>&nbsp;&nbsp; Update Modules Easily.</li>
<li style="list-style:none !important;"><span style="color:green;"> &#9786;</span>&nbsp;&nbsp; Custom Email Template for Sending Mail with Failure Details.</li>
</ul>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<img src="dev.jpg">
</div>
</div>
<div class="oe_span6">
<p class="oe_mt32">
<p>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.</p>
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span6">
<p class="oe_mt32">
<p>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</p>
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<img src="im_login.jpg">
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span6">
<p class="oe_mt32">
<p>The developer can identify running DB easily.</p>
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<img src="working_db.png">
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span6">
<p class="oe_mt32">
<p>Easily update any module without opening the form.</p>
</p>
</div>
<div class="oe_span6">
<div class="oe_demo oe_picture oe_screenshot">
<img src="apps_view.png">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;" href="http://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;"
href="http://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;"
href="http://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
</section>

6
developer_mode/views/developer_mode_view.xml

@ -19,7 +19,7 @@
</field>
</record>
<record id="developer_tweaks_module_form" model="ir.ui.view">
<record id="developer_mode_module_form" model="ir.ui.view">
<field name="name">ir.module.module.form</field>
<field name="inherit_id" ref="base.module_form"/>
<field name="model">ir.module.module</field>
@ -51,7 +51,7 @@
</field>
</record>
<record id="developer_tweaks_module_module_tree" model="ir.ui.view">
<record id="developer_mode_module_module_tree" model="ir.ui.view">
<field name="name">ir.module.module.tree</field>
<field name="inherit_id" ref="base.module_tree"/>
<field name="model">ir.module.module</field>
@ -82,7 +82,7 @@
</field>
</record>
<record model="ir.ui.view" id="developer_tweaks_module_view_kanban">
<record model="ir.ui.view" id="developer_mode_module_view_kanban">
<field name="name">Modules Kanban</field>
<field name="inherit_id" ref="base.module_view_kanban"/>
<field name="model">ir.module.module</field>

2
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');

20
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});
}
}
});
});
Loading…
Cancel
Save