diff --git a/pos_analytic_tag/README.rst b/pos_analytic_tag/README.rst new file mode 100644 index 000000000..8515fc56d --- /dev/null +++ b/pos_analytic_tag/README.rst @@ -0,0 +1,53 @@ + .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +POS Analytic Tag +================= +Using this module you can add Analytic Tags to your PoS orders +and session. + +Installation +------------ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +Configuration +------------- +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +Developer : (V16) Shafna K @ Cybrosys + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://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 +---------- +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +------------------- +HTML Description: ``__ \ No newline at end of file diff --git a/pos_analytic_tag/__init__.py b/pos_analytic_tag/__init__.py new file mode 100644 index 000000000..7d40135a6 --- /dev/null +++ b/pos_analytic_tag/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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 diff --git a/pos_analytic_tag/__manifest__.py b/pos_analytic_tag/__manifest__.py new file mode 100644 index 000000000..8ab089ffa --- /dev/null +++ b/pos_analytic_tag/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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 Analytic Tag", + 'version': '16.0.1.0.0', + 'category': 'Point of Sale', + 'summary': 'To manage analytic tags in POS', + 'description': "This module assists in managing analytic tags in the " + "Point of Sale. It enables the use of analytic filters in" + "reporting, facilitating analysis based on these tags.", + 'author': " Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'point_of_sale', 'analytic', 'account'], + 'data': [ + 'views/res_config_settings_views.xml', + 'views/pos_config_views.xml', + 'views/pos_session_views.xml', + 'views/pos_order_views.xml', + 'views/pos_payment_views.xml', + ], + 'assets': { + 'point_of_sale.assets': [ + 'pos_analytic_tag/static/src/js/PosSession.js', + ] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pos_analytic_tag/doc/RELEASE_NOTES.md b/pos_analytic_tag/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..a5f78483e --- /dev/null +++ b/pos_analytic_tag/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 14.08.2023 +#### Version 16.0.1.0.0 +#### ADD + + - Initial Commit for PoS Analytic Tag \ No newline at end of file diff --git a/pos_analytic_tag/models/__init__.py b/pos_analytic_tag/models/__init__.py new file mode 100644 index 000000000..53eb39afa --- /dev/null +++ b/pos_analytic_tag/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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_config +from . import pos_order +from . import pos_payment +from . import pos_session +from . import res_config_settings diff --git a/pos_analytic_tag/models/pos_config.py b/pos_analytic_tag/models/pos_config.py new file mode 100644 index 000000000..7e9f5b7fa --- /dev/null +++ b/pos_analytic_tag/models/pos_config.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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 fields, models + + +class PosConfig(models.Model): + """To add a field in pos config""" + _inherit = 'pos.config' + + analytic_account_id = fields.Many2one('account.analytic.account', + string="Analytic account", + help="Add Analytic account for the " + "current session") diff --git a/pos_analytic_tag/models/pos_order.py b/pos_analytic_tag/models/pos_order.py new file mode 100644 index 000000000..1911ff365 --- /dev/null +++ b/pos_analytic_tag/models/pos_order.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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 fields, models + + +class PosOrder(models.Model): + """To add a field in pos order related to pos session""" + _inherit = 'pos.order' + + pos_analytic_account_id = fields.Many2one( + string='Pos Analytic Tag', readonly=True, + related='session_id.pos_analytic_account_id', + help="Add PoS analytic account for pos order") diff --git a/pos_analytic_tag/models/pos_payment.py b/pos_analytic_tag/models/pos_payment.py new file mode 100644 index 000000000..02a5805be --- /dev/null +++ b/pos_analytic_tag/models/pos_payment.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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 fields, models + + +class PosPayment(models.Model): + """To add a field in pos payment related to pos session""" + _inherit = 'pos.payment' + + pos_analytic_account_id = fields.Many2one( + related='session_id.pos_analytic_account_id', + string="PoS Analytic Account", help="PoS Analytic account in " + "pos payment") diff --git a/pos_analytic_tag/models/pos_session.py b/pos_analytic_tag/models/pos_session.py new file mode 100644 index 000000000..6f7ce4b0f --- /dev/null +++ b/pos_analytic_tag/models/pos_session.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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 fields, models + + +class PosSession(models.Model): + """To add analytic tags in pos session""" + _inherit = 'pos.session' + + pos_analytic_account_id = fields.Many2one('account.analytic.account', + string='Pos Analytic Tag', + help="Pos Analytic account in" + " pos session", + readonly=True) + + def _pos_ui_models_to_load(self): + """To load new model to POS""" + result = super()._pos_ui_models_to_load() + result.append('res.config.settings') + return result + + def _loader_params_res_config_settings(self): + """To load fields in a config""" + return { + 'search_params': { + 'fields': ['pos_analytic_account_id'], + }, + } + + def _get_pos_ui_res_config_settings(self, params): + """To get values in res config settings to pos ui""" + res_obj = self.env['res.config.settings'].search_read( + **params['search_params']) + if res_obj: + val = res_obj[-1] if res_obj[-1] else res_obj + self.pos_analytic_account_id = False if not val[ + 'pos_analytic_account_id'] else \ + val['pos_analytic_account_id'][0] + return val + else: + return False + + def _prepare_analytic_lines(self): + """Call the parent class method and convert any string value + in account_id to integer""" + res = super()._prepare_analytic_lines() + self.ensure_one() + analytic_line_vals = [] + if self.analytic_distribution: + distribution_on_each_plan = {} + for account_id, distribution in self.analytic_distribution.items(): + line_values = self._prepare_analytic_distribution_line( + float(distribution), int(account_id), + distribution_on_each_plan) + if not self.currency_id.is_zero(line_values.get('amount')): + analytic_line_vals.append(line_values) + return res + + def _create_account_move(self, balancing_account=False, + amount_to_balance=0, + bank_payment_method_diffs=None): + """Call the parent class method using super() and creates + analytic distribution model""" + res = super()._create_account_move(balancing_account, + amount_to_balance, + bank_payment_method_diffs) + search_params = { + 'fields': ['pos_analytic_account_id'], + 'limit': 1, + } + analytic_account = self._get_pos_ui_res_config_settings(( + {'search_params': search_params})) + if analytic_account == 'False': + return True + else: + self.env['account.analytic.distribution.model'].create([{ + 'analytic_distribution': {self.pos_analytic_account_id.id: 100} + }]) + return res diff --git a/pos_analytic_tag/models/res_config_settings.py b/pos_analytic_tag/models/res_config_settings.py new file mode 100644 index 000000000..391681147 --- /dev/null +++ b/pos_analytic_tag/models/res_config_settings.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Shafna K(odoo@cybrosys.com) +# +# 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 fields, models + + +class ResConfigSettings(models.TransientModel): + """To add a field in pos configuration settings""" + _inherit = 'res.config.settings' + + pos_analytic_account_id = fields.Many2one( + 'account.analytic.account', + related='pos_config_id.analytic_account_id', + string='Analytic Account(PoS)', readonly=False, + help="Add analytic account for the pos session") diff --git a/pos_analytic_tag/static/description/assets/icons/check.png b/pos_analytic_tag/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/check.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/chevron.png b/pos_analytic_tag/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/chevron.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/cogs.png b/pos_analytic_tag/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/cogs.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/consultation.png b/pos_analytic_tag/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/consultation.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/ecom-black.png b/pos_analytic_tag/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/ecom-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/education-black.png b/pos_analytic_tag/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/education-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/hotel-black.png b/pos_analytic_tag/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/hotel-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/license.png b/pos_analytic_tag/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/license.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/lifebuoy.png b/pos_analytic_tag/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/manufacturing-black.png b/pos_analytic_tag/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/pos-black.png b/pos_analytic_tag/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/pos-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/puzzle.png b/pos_analytic_tag/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/puzzle.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/restaurant-black.png b/pos_analytic_tag/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/service-black.png b/pos_analytic_tag/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/service-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/trading-black.png b/pos_analytic_tag/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/trading-black.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/training.png b/pos_analytic_tag/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/training.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/update.png b/pos_analytic_tag/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/update.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/user.png b/pos_analytic_tag/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/user.png differ diff --git a/pos_analytic_tag/static/description/assets/icons/wrench.png b/pos_analytic_tag/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/pos_analytic_tag/static/description/assets/icons/wrench.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/categories.png b/pos_analytic_tag/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/categories.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/check-box.png b/pos_analytic_tag/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/check-box.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/compass.png b/pos_analytic_tag/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/compass.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/corporate.png b/pos_analytic_tag/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/corporate.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/customer-support.png b/pos_analytic_tag/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/customer-support.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/cybrosys-logo.png b/pos_analytic_tag/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/cybrosys-logo.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/features.png b/pos_analytic_tag/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/features.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/logo.png b/pos_analytic_tag/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/logo.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/pictures.png b/pos_analytic_tag/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/pictures.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/pie-chart.png b/pos_analytic_tag/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/pie-chart.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/right-arrow.png b/pos_analytic_tag/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/right-arrow.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/star.png b/pos_analytic_tag/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/star.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/support.png b/pos_analytic_tag/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/support.png differ diff --git a/pos_analytic_tag/static/description/assets/misc/whatsapp.png b/pos_analytic_tag/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/misc/whatsapp.png differ diff --git a/pos_analytic_tag/static/description/assets/modules/1.png b/pos_analytic_tag/static/description/assets/modules/1.png new file mode 100644 index 000000000..489f44e86 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/modules/1.png differ diff --git a/pos_analytic_tag/static/description/assets/modules/2.png b/pos_analytic_tag/static/description/assets/modules/2.png new file mode 100644 index 000000000..4f9e87f6e Binary files /dev/null and b/pos_analytic_tag/static/description/assets/modules/2.png differ diff --git a/pos_analytic_tag/static/description/assets/modules/3.png b/pos_analytic_tag/static/description/assets/modules/3.png new file mode 100644 index 000000000..e571015b1 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/modules/3.png differ diff --git a/pos_analytic_tag/static/description/assets/modules/4.png b/pos_analytic_tag/static/description/assets/modules/4.png new file mode 100644 index 000000000..624ef69b7 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/modules/4.png differ diff --git a/pos_analytic_tag/static/description/assets/modules/5.gif b/pos_analytic_tag/static/description/assets/modules/5.gif new file mode 100644 index 000000000..8f40aab85 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/modules/5.gif differ diff --git a/pos_analytic_tag/static/description/assets/modules/6.png b/pos_analytic_tag/static/description/assets/modules/6.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/modules/6.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-01.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-01.png new file mode 100644 index 000000000..a9c2505dc Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-01.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-02.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-02.png new file mode 100644 index 000000000..5b54fc8ed Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-02.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-03.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-03.png new file mode 100644 index 000000000..04f8ead38 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-03.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-04.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-04.png new file mode 100644 index 000000000..981f22610 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-04.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-05.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-05.png new file mode 100644 index 000000000..ab078f4b0 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-05.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-06.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-06.png new file mode 100644 index 000000000..f84eadc70 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-06.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-07.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-07.png new file mode 100644 index 000000000..7f5377e79 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-07.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-08.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-08.png new file mode 100644 index 000000000..de9cc52dc Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-08.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic-09.png b/pos_analytic_tag/static/description/assets/screenshots/analytic-09.png new file mode 100644 index 000000000..a16722551 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic-09.png differ diff --git a/pos_analytic_tag/static/description/assets/screenshots/analytic.gif b/pos_analytic_tag/static/description/assets/screenshots/analytic.gif new file mode 100644 index 000000000..0e0e1cb98 Binary files /dev/null and b/pos_analytic_tag/static/description/assets/screenshots/analytic.gif differ diff --git a/pos_analytic_tag/static/description/banner.jpg b/pos_analytic_tag/static/description/banner.jpg new file mode 100644 index 000000000..f9d33217a Binary files /dev/null and b/pos_analytic_tag/static/description/banner.jpg differ diff --git a/pos_analytic_tag/static/description/icon.png b/pos_analytic_tag/static/description/icon.png new file mode 100644 index 000000000..c018189f2 Binary files /dev/null and b/pos_analytic_tag/static/description/icon.png differ diff --git a/pos_analytic_tag/static/description/index.html b/pos_analytic_tag/static/description/index.html new file mode 100644 index 000000000..1c8f938ad --- /dev/null +++ b/pos_analytic_tag/static/description/index.html @@ -0,0 +1,479 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ PoS Analytic Tag +

+

+ An Analytic Tag can be used for each Order in POS +

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

Explore This + Module

+
+ + + +
+
+ +
+

Overview

+
+
+
+ This module helps to add Analytic Tags in Point of Sale. There by we + can get complete Analysis of POS Orders and also in Reporting we can + filter Reports using this Analytic Filter. +
+
+ + +
+
+ +
+

Features +

+
+
+
+
+ + Easily add Analytic Tag in Point of Sale +
+
+ + Easier Analysis using Analytic Tag in Reporting +
+
+ + Simplified work flow +
+
+
+ + +
+
+ +
+

Screenshots +

+
+
+
+
+

Enable Analytic Accounting for the User +

+ +
+
+

Choose an Analytic Account from PoS Configuration + Settings or Create a new one +

+ +
+
+

Open a Session and Create an Order +

+ +
+
+

Choose the Product and Close the Session after + making Payment +

+ +
+
+

Analytic Account is added for the corresponding Session +

+ +
+
+

Analytic Account is added in the PoS Order

+ +
+
+

Analytic Account in Payment Page +

+ +
+
+

Analytic account in payment form view +

+ +
+
+

After closing the Session, Analytic tag is Added + in Journal item +

+ +
+
+
+ + +
+
+ +
+

Related Products +

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

Our Services +

+
+
+
+
+
+ +
+
Odoo Customization
+
+
+
+ +
+
Odoo Implementation
+
+
+
+ +
+
Odoo Support
+
+
+
+ +
+
Hire Odoo Developer
+
+
+
+ +
+
Odoo Integration
+
+
+
+ +
+
Odoo Migration
+
+
+
+ +
+
Odoo Consultancy
+
+
+
+ +
+
Odoo Implementation
+
+
+
+ +
+
Odoo Licensing Consultancy
+
+
+
+ + +
+
+ +
+

Our Industries +

+
+
+
+
+
+ +
Trading +
+

Easily procure and sell your products

+
+
+
+
+ +
POS +
+

Easy configuration and convivial experience

+
+
+
+
+ +
Education +
+

A platform for educational management

+
+
+
+
+ +
Manufacturing +
+

Plan, track and schedule your operations

+
+
+
+
+ +
E-commerce & Website +
+

Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +
Service Management +
+

Keep track of services and invoice

+
+
+
+
+ +
Restaurant +
+

Run your bar or restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

An all-inclusive hotel management application

+
+
+
+
+ + +
+
+ +
+

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/pos_analytic_tag/static/src/js/PosSession.js b/pos_analytic_tag/static/src/js/PosSession.js new file mode 100644 index 000000000..2b6ff7a62 --- /dev/null +++ b/pos_analytic_tag/static/src/js/PosSession.js @@ -0,0 +1,15 @@ +/** @odoo-module **/ +/** + * Extends PosGlobalState and it extends Registries + * Override the _processData method to process loaded data + **/ +import { PosGlobalState} from 'point_of_sale.models'; +import Registries from 'point_of_sale.Registries'; + +const AnalyticAccount = (PosGlobalState) => class AnalyticAccount extends PosGlobalState { + async _processData(loadedData) { + await super._processData(...arguments); + this.res_config_settings = loadedData['res.config.settings']; + } + } +Registries.Model.extend(PosGlobalState, AnalyticAccount); \ No newline at end of file diff --git a/pos_analytic_tag/views/pos_config_views.xml b/pos_analytic_tag/views/pos_config_views.xml new file mode 100644 index 000000000..24b3793aa --- /dev/null +++ b/pos_analytic_tag/views/pos_config_views.xml @@ -0,0 +1,15 @@ + + + + + pos.config.view.form.inherit.pos.analytic.tag + pos.config + + + + + + + + \ No newline at end of file diff --git a/pos_analytic_tag/views/pos_order_views.xml b/pos_analytic_tag/views/pos_order_views.xml new file mode 100644 index 000000000..8b4cb7dc0 --- /dev/null +++ b/pos_analytic_tag/views/pos_order_views.xml @@ -0,0 +1,17 @@ + + + + + pos.order.view.form.inherit.pos.analytic.tag + pos.order + + + + + + + + + + + \ No newline at end of file diff --git a/pos_analytic_tag/views/pos_payment_views.xml b/pos_analytic_tag/views/pos_payment_views.xml new file mode 100644 index 000000000..6c7ecc7ec --- /dev/null +++ b/pos_analytic_tag/views/pos_payment_views.xml @@ -0,0 +1,14 @@ + + + + + pos.payment.view.form.inherit.pos.analytic.tag + pos.payment + + + + + + + + \ No newline at end of file diff --git a/pos_analytic_tag/views/pos_session_views.xml b/pos_analytic_tag/views/pos_session_views.xml new file mode 100644 index 000000000..cb7d2052c --- /dev/null +++ b/pos_analytic_tag/views/pos_session_views.xml @@ -0,0 +1,14 @@ + + + + + pos.session.view.form.inherit.pos.analytic.tag + pos.session + + + + + + + + \ No newline at end of file diff --git a/pos_analytic_tag/views/res_config_settings_views.xml b/pos_analytic_tag/views/res_config_settings_views.xml new file mode 100644 index 000000000..f488d4e5e --- /dev/null +++ b/pos_analytic_tag/views/res_config_settings_views.xml @@ -0,0 +1,28 @@ + + + + + res.config.settings.view.form.inherit.pos.analytic.tag + res.config.settings + + +
+

POS Analytic Tags

+
+
+
+ Analytic Account +
+ Track costs and revenues in each POS sessions +
+
+ +
+
+
+
+
+
+
+
\ No newline at end of file