diff --git a/pos_waiter/README.rst b/pos_waiter/README.rst new file mode 100644 index 000000000..ffb1b74d9 --- /dev/null +++ b/pos_waiter/README.rst @@ -0,0 +1,40 @@ +POS waiter performance analysis +=============================== +* Enables the option for selecting the waiter in pos interface and allows to print report of their performance + +Installation +============ +- www.odoo.com/documentation/12.0/setup/install.html +- Install our custom addon + +License +------- +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: + Sayooj A O + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/pos_waiter/__init__.py b/pos_waiter/__init__.py new file mode 100644 index 000000000..469b3f336 --- /dev/null +++ b/pos_waiter/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models +from . import wizard +from . import report + diff --git a/pos_waiter/__manifest__.py b/pos_waiter/__manifest__.py new file mode 100644 index 000000000..1669b8816 --- /dev/null +++ b/pos_waiter/__manifest__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'POS waiter performance analysis', + 'summary': """Allows waiter selection from pos interface and + provides report for performance analysing""", + 'version': '12.0.1.0.0', + 'description': """Allows waiter selection from pos interface and + provides report for analysing the performance of the waiter""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'category': 'Point of Sale', + 'depends': ['base', 'point_of_sale', 'hr'], + 'license': 'AGPL-3', + 'data': [ + 'views/pos_employee_template.xml', + 'views/hr_employee_view_inherited.xml', + 'views/pos_order_waiter_inherited.xml', + 'views/pos_config_inherited_view.xml', + 'wizard/waiter_performance_wizard_view.xml', + 'report/waiter_performance_report.xml', + 'report/waiter_performance_report_template.xml', + ], + 'qweb': ['static/src/xml/pos_waiter_selection.xml'], + 'installable': True, + 'auto_install': False, + +} diff --git a/pos_waiter/doc/RELEASE_NOTES.md b/pos_waiter/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..866efd2c2 --- /dev/null +++ b/pos_waiter/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 20.11.2019 +#### Version 12.0.1.0.0 +##### ADD +- Initial commit diff --git a/pos_waiter/models/__init__.py b/pos_waiter/models/__init__.py new file mode 100644 index 000000000..71995268d --- /dev/null +++ b/pos_waiter/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import pos_order +from . import hr_employee +from . import pos_config + diff --git a/pos_waiter/models/hr_employee.py b/pos_waiter/models/hr_employee.py new file mode 100644 index 000000000..77572f4ea --- /dev/null +++ b/pos_waiter/models/hr_employee.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class WaiterAnalysis(models.Model): + """In this class the model hr.employee is inherited + for adding a new field for differentiating waiters and + other employees""" + + _inherit = 'hr.employee' + + is_a_waiter = fields.Boolean(string='Is a waiter', + help='Enable this field to mark the normal employee as a waiter') diff --git a/pos_waiter/models/pos_config.py b/pos_waiter/models/pos_config.py new file mode 100644 index 000000000..15177ae3a --- /dev/null +++ b/pos_waiter/models/pos_config.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class Configuration(models.Model): + _inherit = 'pos.config' + + waiter_configuration = fields.Boolean(string='Enable Waiter Selection', + help='Allow to select waiters in POS interface') diff --git a/pos_waiter/models/pos_order.py b/pos_waiter/models/pos_order.py new file mode 100644 index 000000000..85fd3c1f7 --- /dev/null +++ b/pos_waiter/models/pos_order.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from functools import partial + +from odoo import models, api, fields + + +class OrderNotes(models.Model): + """In this class pos.order is inherited for adding the waiter + reference in the order and function for fetching the waiter + from pos to backend order""" + + _inherit = 'pos.order' + + employee_id = fields.Many2one('hr.employee', string='Waiter') + + @api.model + def _order_fields(self, ui_order): + """In this function the waiter that we defined from the + pos interface is fetched to the pos order which is created + in the backend""" + + process_line = partial(self.env['pos.order.line']._order_line_fields, + session_id=ui_order['pos_session_id']) + return { + 'name': ui_order['name'], + 'user_id': ui_order['user_id'] or False, + 'session_id': ui_order['pos_session_id'], + 'lines': [process_line(l) for l in ui_order['lines']] if ui_order['lines'] else False, + 'pos_reference': ui_order['name'], + 'partner_id': ui_order['partner_id'] or False, + 'date_order': ui_order['creation_date'], + 'fiscal_position_id': ui_order['fiscal_position_id'], + 'pricelist_id': ui_order['pricelist_id'], + 'amount_paid': ui_order['amount_paid'], + 'amount_total': ui_order['amount_total'], + 'amount_tax': ui_order['amount_tax'], + 'amount_return': ui_order['amount_return'], + 'employee_id': ui_order.get('employee_id') + + } diff --git a/pos_waiter/report/__init__.py b/pos_waiter/report/__init__.py new file mode 100644 index 000000000..eab11d61c --- /dev/null +++ b/pos_waiter/report/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import performance_report_values diff --git a/pos_waiter/report/performance_report_values.py b/pos_waiter/report/performance_report_values.py new file mode 100644 index 000000000..a37767d6b --- /dev/null +++ b/pos_waiter/report/performance_report_values.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +# -*- coding: utf-8 -*- +from odoo import models, api + + +class AllInOneAccountReport(models.TransientModel): + + """In this class the values are fetched from the wizard + and the required values from the database and passed to + the report template""" + + _name = "report.pos_waiter.performance_analysis" + + @api.model + def _get_report_values(self, docids, data=None): + start_date = data['start_date'] + end_date = data['end_date'] + query = """select sum(po.amount_total) as total_amount,po.date_order::date as order_date, + he.name as waiter_name + from pos_order po + join hr_employee he + on he.id = po.employee_id + where po.date_order::date >= '%s' AND po.date_order::date <= '%s' + group by he.name,po.date_order::date + order by po.date_order::date """ % (start_date, end_date) + self._cr.execute(query) + performance_details = self._cr.dictfetchall() + return { + 'start_date': start_date, + 'end_date': end_date, + 'performance_details': performance_details + } diff --git a/pos_waiter/report/waiter_performance_report.xml b/pos_waiter/report/waiter_performance_report.xml new file mode 100644 index 000000000..ff0a8c684 --- /dev/null +++ b/pos_waiter/report/waiter_performance_report.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/pos_waiter/report/waiter_performance_report_template.xml b/pos_waiter/report/waiter_performance_report_template.xml new file mode 100644 index 000000000..5e17c46d5 --- /dev/null +++ b/pos_waiter/report/waiter_performance_report_template.xml @@ -0,0 +1,116 @@ + + + + + + \ No newline at end of file diff --git a/pos_waiter/static/description/banner.png b/pos_waiter/static/description/banner.png new file mode 100644 index 000000000..6055ffc67 Binary files /dev/null and b/pos_waiter/static/description/banner.png differ diff --git a/pos_waiter/static/description/icon.png b/pos_waiter/static/description/icon.png new file mode 100644 index 000000000..35a645e39 Binary files /dev/null and b/pos_waiter/static/description/icon.png differ diff --git a/pos_waiter/static/description/images/checked.png b/pos_waiter/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/pos_waiter/static/description/images/checked.png differ diff --git a/pos_waiter/static/description/images/cybrosys.png b/pos_waiter/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/pos_waiter/static/description/images/cybrosys.png differ diff --git a/pos_waiter/static/description/images/order_types_in_pos.png b/pos_waiter/static/description/images/order_types_in_pos.png new file mode 100644 index 000000000..2554ded45 Binary files /dev/null and b/pos_waiter/static/description/images/order_types_in_pos.png differ diff --git a/pos_waiter/static/description/images/pos_combo_products.png b/pos_waiter/static/description/images/pos_combo_products.png new file mode 100644 index 000000000..98673039e Binary files /dev/null and b/pos_waiter/static/description/images/pos_combo_products.png differ diff --git a/pos_waiter/static/description/images/pos_lot_expiry_warning.png b/pos_waiter/static/description/images/pos_lot_expiry_warning.png new file mode 100644 index 000000000..ed9d045ca Binary files /dev/null and b/pos_waiter/static/description/images/pos_lot_expiry_warning.png differ diff --git a/pos_waiter/static/description/images/pos_product_addons.png b/pos_waiter/static/description/images/pos_product_addons.png new file mode 100644 index 000000000..25d4d79f4 Binary files /dev/null and b/pos_waiter/static/description/images/pos_product_addons.png differ diff --git a/pos_waiter/static/description/images/pos_return.jpeg b/pos_waiter/static/description/images/pos_return.jpeg new file mode 100644 index 000000000..874a6d32a Binary files /dev/null and b/pos_waiter/static/description/images/pos_return.jpeg differ diff --git a/pos_waiter/static/description/images/pos_waiter_01.png b/pos_waiter/static/description/images/pos_waiter_01.png new file mode 100644 index 000000000..83d3348df Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_01.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_02.png b/pos_waiter/static/description/images/pos_waiter_02.png new file mode 100644 index 000000000..c771e241d Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_02.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_03.png b/pos_waiter/static/description/images/pos_waiter_03.png new file mode 100644 index 000000000..f2c6235f6 Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_03.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_04.png b/pos_waiter/static/description/images/pos_waiter_04.png new file mode 100644 index 000000000..cb208b5fa Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_04.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_05.png b/pos_waiter/static/description/images/pos_waiter_05.png new file mode 100644 index 000000000..fc131b7f7 Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_05.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_06.png b/pos_waiter/static/description/images/pos_waiter_06.png new file mode 100644 index 000000000..3b647b0a1 Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_06.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_07.png b/pos_waiter/static/description/images/pos_waiter_07.png new file mode 100644 index 000000000..91cc8623c Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_07.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_08.png b/pos_waiter/static/description/images/pos_waiter_08.png new file mode 100644 index 000000000..51a5056b2 Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_08.png differ diff --git a/pos_waiter/static/description/images/pos_waiter_09.png b/pos_waiter/static/description/images/pos_waiter_09.png new file mode 100644 index 000000000..623db1217 Binary files /dev/null and b/pos_waiter/static/description/images/pos_waiter_09.png differ diff --git a/pos_waiter/static/description/images/remove_orders.png b/pos_waiter/static/description/images/remove_orders.png new file mode 100644 index 000000000..8096e2708 Binary files /dev/null and b/pos_waiter/static/description/images/remove_orders.png differ diff --git a/pos_waiter/static/description/index.html b/pos_waiter/static/description/index.html new file mode 100644 index 000000000..bd502cf77 --- /dev/null +++ b/pos_waiter/static/description/index.html @@ -0,0 +1,423 @@ + + +
cybrosys-logo
+ +
+
+
+

POS waiter performance analysis

+

Selection and performance analysis of waiters in POS

+
+

Key Highlights

+
    +
  • checkThe waiter selection can be enable/disable from point of sale settings.
  • +
  • checkSelected waiter will highlighted in pos ticket and order.
  • +
  • checkOption for distinguish normal employees and waiters.
  • +
  • check Date wise report which shows the amount of sales carried by each waiters.
  • +
+ +
+
+
+
+ + + + + + +
+
+
+ + + +
+
+ +

Overview

+
+

+ Allows waiter selection from pos interface and provides report of the performance of the waiter by analysing the sales carried by + each waiter.

+
+ +
+ +

POS waiter performance analysis

+
+
    + +
  • + checkThe waiter selection can be enable/disable from point of sale settings.
  • + +
  • + checkSelected waiter will highlighted in pos ticket and order.
  • + +
  • + checkOption to distinguish normal employees and waiters.
  • + +
  • + checkDate wise report which shows the amount of sales carried by each waiters.
  • +
+
+ + + +
+ +
+

Screenshots

+
+
+
+ + + +
+
+
+
+ + +
+ +

Video

+
+

POS waiter performance analysis Demo

+ + +
+ Cybrosys Cover Video +
+ +
+
+ + + +
+
    + + +
+
+
+
+
+
+ +
+

Suggested Products

+
+ +
+ + +
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

Service Management

+

Keep track of services and invoice accordingly.

+
+
+
+
+
+ + + + +
+
+
+

Need Any Help?

+
+ +

If you have anything to share with us based on your use of this module, please let us know. We are ready to offer our support.

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+ +
+
+

Contact Us

+ www.cybrosys.com +
+
+ +
+
+ + +
+
+
+ + + + +
+
+ +
+ + + + + + + + +
+
+
+ + diff --git a/pos_waiter/static/src/js/employee_pos.js b/pos_waiter/static/src/js/employee_pos.js new file mode 100644 index 000000000..338f67151 --- /dev/null +++ b/pos_waiter/static/src/js/employee_pos.js @@ -0,0 +1,81 @@ +odoo.define('waiter_performance_analysis.employee_pos', function (require) { + "use strict"; + var screens = require('point_of_sale.screens'); + var gui = require('point_of_sale.gui'); + var core = require('web.core'); + var rpc = require('web.rpc'); + var PopupWidget = require('point_of_sale.popups'); + var _t = core._t; + var models = require('point_of_sale.models'); + + models.load_models({ + model: 'hr.employee', + fields: ['id', 'name'], + domain: function(){ return [['is_a_waiter','=',true]]; }, + loaded: function (self, employee) { + self.employee_name_by_id = {}; + for (var i = 0; i < employee.length; i++) { + self.employee_name_by_id[employee[i].id] = employee[i]; + } + } + }); + + var _super_order = models.Order.prototype; + models.Order = models.Order.extend({ + export_as_JSON: function () { + var json = _super_order.export_as_JSON.apply(this, arguments); + json.order_waiter = this.order_waiter; + json.employee_id = this.employee_id; + return json; + }, + init_from_JSON: function (json) { + _super_order.init_from_JSON.apply(this, arguments); + this.order_waiter = json.order_waiter; + this.employee_id = json.employee_id; + _super_order.init_from_JSON.call(this, json); + } + }); + + var WaiterPopupWidget = PopupWidget.extend({ + template: 'WaiterPopupWidget', + init: function (parent, options) { + this.options = options || {}; + this._super(parent, _.extend({}, { + size: "medium" + }, this.options)); + }, + renderElement: function () { + this._super(); + for (var employee in this.pos.employee_name_by_id) { + $('#employee_select').append($("").attr("value", this.pos.employee_name_by_id[employee].name).attr("id", this.pos.employee_name_by_id[employee].id)) + } + }, + click_confirm: function () { + var employee_id = $("#employee_select :selected").attr('id'); + var employee_name = $("#employee_select :selected").text(); + var order = this.pos.get_order(); + order.order_waiter = employee_name; + order.employee_id = employee_id; + this.gui.close_popup(); + }, + + }); + gui.define_popup({name: 'pos_no', widget: WaiterPopupWidget}); + + var WaiterSelectionButton = screens.ActionButtonWidget.extend({ + template: 'WaiterSelectionButton', + button_click: function () { + var note = this.pos.get_order().order_waiter; + this.gui.show_popup('pos_no', {'value': this.pos.get_order().order_waiter}); + } + }); + + screens.define_action_button({ + 'name': 'pos_waiter_selection', + 'widget': WaiterSelectionButton, + 'condition': function(){ + return this.pos.config.waiter_configuration; + } + }); +}); + diff --git a/pos_waiter/static/src/xml/pos_waiter_selection.xml b/pos_waiter/static/src/xml/pos_waiter_selection.xml new file mode 100644 index 000000000..e361bc4af --- /dev/null +++ b/pos_waiter/static/src/xml/pos_waiter_selection.xml @@ -0,0 +1,40 @@ + + diff --git a/pos_waiter/views/hr_employee_view_inherited.xml b/pos_waiter/views/hr_employee_view_inherited.xml new file mode 100644 index 000000000..b4dba26ff --- /dev/null +++ b/pos_waiter/views/hr_employee_view_inherited.xml @@ -0,0 +1,15 @@ + + + + + hr.waiter.view + hr.employee + + + + + + + + + \ No newline at end of file diff --git a/pos_waiter/views/pos_config_inherited_view.xml b/pos_waiter/views/pos_config_inherited_view.xml new file mode 100644 index 000000000..3c8970167 --- /dev/null +++ b/pos_waiter/views/pos_config_inherited_view.xml @@ -0,0 +1,26 @@ + + + + + Waiter Selection + pos.config + + + + +
+
+ +
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/pos_waiter/views/pos_employee_template.xml b/pos_waiter/views/pos_employee_template.xml new file mode 100644 index 000000000..9159d98cc --- /dev/null +++ b/pos_waiter/views/pos_employee_template.xml @@ -0,0 +1,10 @@ + + + +