diff --git a/developer_mode/README.rst~ b/developer_mode/README.rst~ deleted file mode 100644 index 01293bc28..000000000 --- a/developer_mode/README.rst~ +++ /dev/null @@ -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 \ No newline at end of file diff --git a/developer_mode/__openerp__.py b/developer_mode/__openerp__.py index 3a321cf99..6be9fc13c 100644 --- a/developer_mode/__openerp__.py +++ b/developer_mode/__openerp__.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': '9.0.2.0.0', + 'version': '9.0.3.0.0', 'author': 'Cybrosys Techno Solutions', 'website': "http://www.cybrosys.com", 'company': 'Cybrosys Techno Solutions', diff --git a/developer_mode/__openerp__.py~ b/developer_mode/__openerp__.py~ index 74e4d5376..3a321cf99 100644 --- a/developer_mode/__openerp__.py~ +++ b/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", diff --git a/developer_mode/data/cybro_developer_data.xml~ b/developer_mode/data/cybro_developer_data.xml~ deleted file mode 100644 index d01e24193..000000000 --- a/developer_mode/data/cybro_developer_data.xml~ +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - res.partner - cybro_partner_developer_mode - True - - - - Cybrodeveloper - - www.cybrosys.com - -****************************************************** - - Your freelance partner! - -****************************************************** - -Custom development for Odoo is what we do. Talk to us! - - - - - - - - - - - - - - - - - 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 4142a37bd..000000000 --- a/developer_mode/static/description/index.html~ +++ /dev/null @@ -1,99 +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 de8a3ebe1..da136634f 100644 --- a/developer_mode/views/developer_mode_view.xml +++ b/developer_mode/views/developer_mode_view.xml @@ -18,7 +18,7 @@ - + ir.module.module.form ir.module.module @@ -48,7 +48,7 @@ - + ir.module.module.tree ir.module.module @@ -79,7 +79,7 @@ - + Modules Kanban ir.module.module diff --git a/pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py b/pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py index c8659bc78..181f5af35 100644 --- a/pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py +++ b/pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py @@ -2,7 +2,7 @@ ############################################################################## # # Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2008-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. @@ -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 diff --git a/pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py~ b/pos_restaurant_floor_facility/models/pos_restaurant_extra_facility.py~ new file mode 100644 index 000000000..c8659bc78 --- /dev/null +++ b/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(). +# 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 . +# +############################################################################## +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")