9 changed files with 69 additions and 170 deletions
@ -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 |
|
@ -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> |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 146 KiB |
@ -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;"> ☺</span> Automatically Trigger Developer Mode.</li> |
|
||||
<li style="list-style:none !important;"><span style="color:green;"> ☺</span> Showing Running DB On Left Top.</li> |
|
||||
<li style="list-style:none !important;"><span style="color:green;"> ☺</span> Update Modules Easily.</li> |
|
||||
<li style="list-style:none !important;"><span style="color:green;"> ☺</span> 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> |
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
@ -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…
Reference in new issue