Browse Source

[CHNG]Changed Banner

pull/81/head
SHEREEF PT 8 years ago
parent
commit
0c6b7a7db6
  1. 22
      developer_mode/README.rst~
  2. 4
      developer_mode/__openerp__.py
  3. 2
      developer_mode/__openerp__.py~
  4. 41
      developer_mode/data/cybro_developer_data.xml~
  5. BIN
      developer_mode/static/description/banner.jpg
  6. 99
      developer_mode/static/description/index.html~
  7. 6
      developer_mode/views/developer_mode_view.xml
  8. 3
      pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py
  9. 62
      pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py~

22
developer_mode/README.rst~

@ -1,22 +0,0 @@
Automatic Developer Mode v9
===========================
This module aims to reduce the repeated works of a Odoo Developer.
Features
========
* Automatically Trigger Developer Mode.
* Showing Running DB On Left Top.
* Select a range of date limit(days) in integer form
* Update Modules Easily.
.. note::
# If you installed any other tool, This module may not work properly.
# There is a dev mode property missing issue with website module.
Credits
=======
Nilmar Shereef @ cybrosys, shereef@cybrosys.in

4
developer_mode/__openerp__.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': '9.0.2.0.0',
'version': '9.0.3.0.0',
'author': 'Cybrosys Techno Solutions',
'website': "http://www.cybrosys.com",
'company': 'Cybrosys Techno Solutions',

2
developer_mode/__openerp__.py~

@ -22,7 +22,7 @@
##############################################################################
{
'name': "Automatic Developer Mode",
'summary': """Automatically Activate Developer Mode""",
'summary': """Automatically Activate Developer Mode & Running DB Name on Left Top""",
'version': '9.0.2.0.0',
'author': 'Cybrosys Techno Solutions',
'website': "http://www.cybrosys.com",

41
developer_mode/data/cybro_developer_data.xml~

@ -1,41 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="odooveloper_model" model="ir.model.data">
<field name="res_id" search="[('model','=','res.partner'),('name','=','Cybrodeveloper')]" model="ir.model.data"/>
<field name="model">res.partner</field>
<field name="name">cybro_partner_developer_mode</field>
<field name="noupdate">True</field>
</record>
<record model="res.partner" id="cybro_partner_developer_mode">
<field name="name">Cybrodeveloper</field>
<field name="image" type="base64" file="developer_tweaks/data/images/odooveloper.png"/>
<field name="website">www.cybrosys.com</field>
<field name="comment">
******************************************************
Your freelance partner!
******************************************************
Custom development for Odoo is what we do. Talk to us!
</field>
<field name="country_id" ref="base.pt"/>
<field name="supplier" eval="True"/>
<field name="customer" eval="False"/>
</record>
</data>
</odoo>

BIN
developer_mode/static/description/banner.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 146 KiB

99
developer_mode/static/description/index.html~

@ -1,99 +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

@ -18,7 +18,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>
@ -48,7 +48,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>
@ -79,7 +79,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>

3
pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py

@ -2,7 +2,7 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2008-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.
@ -35,7 +35,6 @@ class FacilityRestaurant(models.Model):
sum_of_percentage = 0.0
for records in self.rest_floor_facility:
sum_of_percentage += records.line_percentage
print sum_of_percentage
self.facility_service_percentage = sum_of_percentage

62
pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py~

@ -0,0 +1,62 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2008-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/>.
#
##############################################################################
from openerp import models, fields, api
class FacilityRestaurant(models.Model):
_inherit = "restaurant.floor"
rest_floor_facility = fields.One2many('restaurant.floor.line', 'ref_field', string='Floor Facility')
facility_service_percentage = fields.Float(string="Active Facility Charge %")
@api.onchange('rest_floor_facility')
def onchange_facility(self):
sum_of_percentage = 0.0
for records in self.rest_floor_facility:
sum_of_percentage += records.line_percentage
print sum_of_percentage
self.facility_service_percentage = sum_of_percentage
class FacilityRestaurantLines(models.Model):
_name = "restaurant.floor.line"
name = fields.Many2one('restaurant.floor.facility')
line_percentage = fields.Float(string="Extra Charging Percentage")
ref_field = fields.Many2one('restaurant.floor', invisible=True, ondelete='cascade')
@api.onchange('name')
def onchange_facility(self):
if self.name:
print "self.name.percentage", self.name.percentage
self.line_percentage = self.name.percentage
class FloorFacility(models.Model):
_name = "restaurant.floor.facility"
name = fields.Char(string="Name", required=True,)
percentage = fields.Float(string="Extra Charging Percentage(%)", required=True,
help="Increment percentage of the each Product Price ")
description = fields.Html(string="Description")
Loading…
Cancel
Save