diff --git a/pos_restaurant_floor_bg_color_picker/README.rst b/pos_restaurant_floor_bg_color_picker/README.rst new file mode 100644 index 000000000..9de215922 --- /dev/null +++ b/pos_restaurant_floor_bg_color_picker/README.rst @@ -0,0 +1,12 @@ +======================================== +POS Restaurant Floor BG Color Picker v10 +======================================== +This module allows you to select the background color of the floor of POS Restaurant by color picker. + +Features +======== +* Allows to add color from color picker in POS restaurant floor background color. + +Credits +======= +Nikhil Krishnan @ cybrosys, nikhil@cybrosys.in \ No newline at end of file diff --git a/pos_restaurant_floor_bg_color_picker/__init__.py b/pos_restaurant_floor_bg_color_picker/__init__.py new file mode 100644 index 000000000..a341bab17 --- /dev/null +++ b/pos_restaurant_floor_bg_color_picker/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Nikhil krishnan(nikhil@cybrosys.in) +# 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 . +# +############################################################################## + +import models diff --git a/pos_restaurant_floor_bg_color_picker/__manifest__.py b/pos_restaurant_floor_bg_color_picker/__manifest__.py new file mode 100644 index 000000000..8b2316ee7 --- /dev/null +++ b/pos_restaurant_floor_bg_color_picker/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Nikhil krishnan() +# 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': 'POS Restaurant BG Color Picker', + 'version': '10.0.1.0', + 'summary': """We Can Pick the color of the background of floor in POS restaurant.""", + 'description': """We Can Pick the color of the background of floor in POS restaurant. So we can avoid to provide + the color code. No need to search for color code.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'category': 'Point Of Sale', + 'depends': ['pos_restaurant', 'web_widget_color'], + 'license': 'LGPL-3', + 'data': ['views/pos_restaurant_floor_views.xml'], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'installable': True, + 'auto_install': False, +} diff --git a/pos_restaurant_floor_bg_color_picker/models/__init__.py b/pos_restaurant_floor_bg_color_picker/models/__init__.py new file mode 100644 index 000000000..39a9014cb --- /dev/null +++ b/pos_restaurant_floor_bg_color_picker/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Nikhil krishnan() +# 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 . +# +############################################################################## + +import pos_restaurant_floor + + diff --git a/pos_restaurant_floor_bg_color_picker/models/pos_restaurant_floor.py b/pos_restaurant_floor_bg_color_picker/models/pos_restaurant_floor.py new file mode 100644 index 000000000..925091190 --- /dev/null +++ b/pos_restaurant_floor_bg_color_picker/models/pos_restaurant_floor.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Nikhil krishnan() +# 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 odoo import fields, models + + +class RestaurantFloor(models.Model): + _inherit = 'restaurant.floor' + + background_color = fields.Char('Background Color', help='The background color of the floor layout, ' + '(must be specified in a html-compatible format)', + default='#D2D2D2') + +# Depends module 'web_widget_color' not work in wizard. +# class RestaurantTable(models.Model): +# _inherit = 'restaurant.table' +# +# color = fields.Char('Color', help="The table's color, expressed as a valid 'background' CSS property value", +# default='#35d374') diff --git a/pos_restaurant_floor_bg_color_picker/static/description/banner.jpg b/pos_restaurant_floor_bg_color_picker/static/description/banner.jpg new file mode 100644 index 000000000..9b6339709 Binary files /dev/null and b/pos_restaurant_floor_bg_color_picker/static/description/banner.jpg differ diff --git a/pos_restaurant_floor_bg_color_picker/static/description/colour picker.png b/pos_restaurant_floor_bg_color_picker/static/description/colour picker.png new file mode 100644 index 000000000..4f510acee Binary files /dev/null and b/pos_restaurant_floor_bg_color_picker/static/description/colour picker.png differ diff --git a/pos_restaurant_floor_bg_color_picker/static/description/cybro_logo.png b/pos_restaurant_floor_bg_color_picker/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/pos_restaurant_floor_bg_color_picker/static/description/cybro_logo.png differ diff --git a/pos_restaurant_floor_bg_color_picker/static/description/icon.png b/pos_restaurant_floor_bg_color_picker/static/description/icon.png new file mode 100644 index 000000000..da0cbcb1a Binary files /dev/null and b/pos_restaurant_floor_bg_color_picker/static/description/icon.png differ diff --git a/pos_restaurant_floor_bg_color_picker/static/description/index.html b/pos_restaurant_floor_bg_color_picker/static/description/index.html new file mode 100644 index 000000000..3084615cd --- /dev/null +++ b/pos_restaurant_floor_bg_color_picker/static/description/index.html @@ -0,0 +1,59 @@ +
+
+
+

POS Restaurant BG Color Picker

+

Pick the background color of the floor in Restaurant Point Of Sale.

+

Cybrosys Technologies

+
+
+

Major Features:

+
    +
  •   Avoid the color code search while setting BG color in Restaurant POS
  • +
  •    Allow picking the "Background Color" of POS floor.
  • +
+
+
+
+ +
+
+
+

Pick the color for the POS floor Background Color.

+
+ +
+
+
+

+

This module allows you to pick a color from the color window. So you don’t need to enter the + color code directly. We can avoid searching for a particular color code. Just pick it and apply.

+

+
+
+
+ +
+

Need Any Help?

+ +
diff --git a/pos_restaurant_floor_bg_color_picker/views/pos_restaurant_floor_views.xml b/pos_restaurant_floor_bg_color_picker/views/pos_restaurant_floor_views.xml new file mode 100644 index 000000000..784a0791d --- /dev/null +++ b/pos_restaurant_floor_bg_color_picker/views/pos_restaurant_floor_views.xml @@ -0,0 +1,28 @@ + + + + + Restaurant Floors + restaurant.floor + + + + + + + + + + + + + + + + + + + + + +