Browse Source

[ADD] Initial Commit

pull/195/head
Ajmal Cybro 4 years ago
parent
commit
f96a5a0b33
  1. 41
      employee_check_list/README.rst
  2. 24
      employee_check_list/__init__.py
  3. 44
      employee_check_list/__manifest__.py
  4. 9
      employee_check_list/doc/RELEASE_NOTES.md
  5. 24
      employee_check_list/models/__init__.py
  6. 85
      employee_check_list/models/employee_master_inherit.py
  7. 49
      employee_check_list/models/settings.py
  8. BIN
      employee_check_list/static/description/assets/icons/check.png
  9. BIN
      employee_check_list/static/description/assets/icons/chevron.png
  10. BIN
      employee_check_list/static/description/assets/icons/cogs.png
  11. BIN
      employee_check_list/static/description/assets/icons/consultation.png
  12. BIN
      employee_check_list/static/description/assets/icons/ecom-black.png
  13. BIN
      employee_check_list/static/description/assets/icons/education-black.png
  14. BIN
      employee_check_list/static/description/assets/icons/hotel-black.png
  15. BIN
      employee_check_list/static/description/assets/icons/license.png
  16. BIN
      employee_check_list/static/description/assets/icons/lifebuoy.png
  17. BIN
      employee_check_list/static/description/assets/icons/logo.png
  18. BIN
      employee_check_list/static/description/assets/icons/manufacturing-black.png
  19. BIN
      employee_check_list/static/description/assets/icons/pos-black.png
  20. BIN
      employee_check_list/static/description/assets/icons/puzzle.png
  21. BIN
      employee_check_list/static/description/assets/icons/restaurant-black.png
  22. BIN
      employee_check_list/static/description/assets/icons/service-black.png
  23. BIN
      employee_check_list/static/description/assets/icons/trading-black.png
  24. BIN
      employee_check_list/static/description/assets/icons/training.png
  25. BIN
      employee_check_list/static/description/assets/icons/update.png
  26. BIN
      employee_check_list/static/description/assets/icons/user.png
  27. BIN
      employee_check_list/static/description/assets/icons/wrench.png
  28. BIN
      employee_check_list/static/description/assets/modules/1.png
  29. BIN
      employee_check_list/static/description/assets/modules/2.png
  30. BIN
      employee_check_list/static/description/assets/modules/3.png
  31. BIN
      employee_check_list/static/description/assets/modules/4.png
  32. BIN
      employee_check_list/static/description/assets/modules/5.png
  33. BIN
      employee_check_list/static/description/assets/modules/6.png
  34. BIN
      employee_check_list/static/description/assets/screenshots/1checklist.png
  35. BIN
      employee_check_list/static/description/assets/screenshots/2checklist.png
  36. BIN
      employee_check_list/static/description/assets/screenshots/3checklist.png
  37. BIN
      employee_check_list/static/description/assets/screenshots/4checklist.png
  38. BIN
      employee_check_list/static/description/assets/screenshots/5checklist.png
  39. BIN
      employee_check_list/static/description/assets/screenshots/6checklist.png
  40. BIN
      employee_check_list/static/description/assets/screenshots/hero.png
  41. BIN
      employee_check_list/static/description/banner.png
  42. BIN
      employee_check_list/static/description/icon.png
  43. 646
      employee_check_list/static/description/index.html
  44. 36
      employee_check_list/views/checklist_view.xml
  45. 66
      employee_check_list/views/employee_form_inherit_view.xml
  46. 30
      employee_check_list/views/settings_view.xml
  47. 50
      product_return_pos/README.md
  48. 22
      product_return_pos/__init__.py
  49. 54
      product_return_pos/__manifest__.py
  50. 8
      product_return_pos/doc/RELEASE_NOTES.md
  51. 23
      product_return_pos/models/__init__.py
  52. 88
      product_return_pos/models/pos_return.py
  53. BIN
      product_return_pos/static/description/assets/icons/check.png
  54. BIN
      product_return_pos/static/description/assets/icons/chevron.png
  55. BIN
      product_return_pos/static/description/assets/icons/cogs.png
  56. BIN
      product_return_pos/static/description/assets/icons/consultation.png
  57. BIN
      product_return_pos/static/description/assets/icons/ecom-black.png
  58. BIN
      product_return_pos/static/description/assets/icons/education-black.png
  59. BIN
      product_return_pos/static/description/assets/icons/hotel-black.png
  60. BIN
      product_return_pos/static/description/assets/icons/license.png
  61. BIN
      product_return_pos/static/description/assets/icons/lifebuoy.png
  62. BIN
      product_return_pos/static/description/assets/icons/manufacturing-black.png
  63. BIN
      product_return_pos/static/description/assets/icons/pos-black.png
  64. BIN
      product_return_pos/static/description/assets/icons/puzzle.png
  65. BIN
      product_return_pos/static/description/assets/icons/restaurant-black.png
  66. BIN
      product_return_pos/static/description/assets/icons/service-black.png
  67. BIN
      product_return_pos/static/description/assets/icons/trading-black.png
  68. BIN
      product_return_pos/static/description/assets/icons/training.png
  69. BIN
      product_return_pos/static/description/assets/icons/update.png
  70. BIN
      product_return_pos/static/description/assets/icons/user.png
  71. BIN
      product_return_pos/static/description/assets/icons/wrench.png
  72. BIN
      product_return_pos/static/description/assets/modules/custom_fields_image.png
  73. BIN
      product_return_pos/static/description/assets/modules/dynamic_image.png
  74. BIN
      product_return_pos/static/description/assets/modules/export_image.png
  75. BIN
      product_return_pos/static/description/assets/modules/global_image.png
  76. BIN
      product_return_pos/static/description/assets/modules/list_view_image.png
  77. BIN
      product_return_pos/static/description/assets/modules/product_return_image.png
  78. BIN
      product_return_pos/static/description/assets/screenshots/hero.png
  79. BIN
      product_return_pos/static/description/assets/screenshots/screenshot1.png
  80. BIN
      product_return_pos/static/description/assets/screenshots/screenshot2.png
  81. BIN
      product_return_pos/static/description/assets/screenshots/screenshot3.png
  82. BIN
      product_return_pos/static/description/assets/screenshots/screenshot4.png
  83. BIN
      product_return_pos/static/description/assets/screenshots/screenshot5.png
  84. BIN
      product_return_pos/static/description/banner.png
  85. BIN
      product_return_pos/static/description/icon.png
  86. 569
      product_return_pos/static/description/index.html
  87. 56
      product_return_pos/static/src/css/pos_return.css
  88. 162
      product_return_pos/static/src/js/models.js
  89. 196
      product_return_pos/static/src/js/order_list_screen.js
  90. 147
      product_return_pos/static/src/js/pos_return.js
  91. 43
      product_return_pos/static/src/js/return.js
  92. 107
      product_return_pos/static/src/xml/pos_return.xml
  93. 31
      product_return_pos/views/return.xml

41
employee_check_list/README.rst

@ -0,0 +1,41 @@
Employee Check List
===================
This module is used to remembering the employee's entry and exit progress.
Configuration
=============
* No additional configurations needed
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer: Nimisha Murali@cybrosys(V13)
* Developer: Aiswarya J P@cybrosys(V15)
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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

24
employee_check_list/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models

44
employee_check_list/__manifest__.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(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 <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Employee Checklist',
'version': '15.0.1.0.0',
'summary': """Manages Employee's Entry & Exit Process""",
'description': """This module is used to remembering the employee's entry and exit progress.""",
'category': 'Generic Modules/Human Resources',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['base', 'employee_documents_expiry'],
'data': [
'views/employee_form_inherit_view.xml',
'views/checklist_view.xml',
'views/settings_view.xml',
],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

9
employee_check_list/doc/RELEASE_NOTES.md

@ -0,0 +1,9 @@
## Module <employee_check_list>
#### 07.10.2021
#### Version 15.0.1.0.0
#### ADD
Initial commit for Employee Check List

24
employee_check_list/models/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import employee_master_inherit
from . import settings

85
employee_check_list/models/employee_master_inherit.py

@ -0,0 +1,85 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, fields, api
class EmployeeMasterInherit(models.Model):
_inherit = 'hr.employee'
@api.depends('exit_checklist_ids')
def exit_progress(self):
for each in self:
total_len = self.env['employee.checklist'].search_count([('document_type', '=', 'exit')])
entry_len = len(each.exit_checklist_ids)
if total_len != 0:
each.exit_progress = (entry_len * 100) / total_len
@api.depends('entry_checklist_ids')
def entry_progress(self):
for each in self:
total_len = self.env['employee.checklist'].search_count([('document_type', '=', 'entry')])
entry_len = len(each.entry_checklist_ids)
if total_len != 0:
each.entry_progress = (entry_len*100) / total_len
entry_checklist_ids = fields.Many2many('employee.checklist', 'entry_obj_ids', 'check_hr_rel', 'hr_check_rel',
string='Entry Process',
domain=[('document_type', '=', 'entry')])
exit_checklist_ids = fields.Many2many('employee.checklist', 'exit_obj_ids', 'exit_hr_rel', 'hr_exit_rel',
string='Exit Process',
domain=[('document_type', '=', 'exit')])
entry_progress = fields.Float(compute=entry_progress, string='Entry Progress', store=True, default=0.0)
exit_progress = fields.Float(compute=exit_progress, string='Exit Progress', store=True, default=0.0)
maximum_rate = fields.Integer(default=100)
check_list_enable = fields.Boolean(invisible=True, copy=False)
class EmployeeDocumentInherit(models.Model):
_inherit = 'hr.employee.document'
@api.model
def create(self, vals):
result = super(EmployeeDocumentInherit, self).create(vals)
if result.document_name.document_type == 'entry':
result.employee_ref.write({'entry_checklist_ids': [(4, result.document_name.id)]})
if result.document_name.document_type == 'exit':
result.employee_ref.write({'exit_checklist_ids': [(4, result.document_name.id)]})
return result
def unlink(self):
for result in self:
if result.document_name.document_type == 'entry':
result.employee_ref.write({'entry_checklist_ids': [(5, result.document_name.id)]})
if result.document_name.document_type == 'exit':
result.employee_ref.write({'exit_checklist_ids': [(5, result.document_name.id)]})
res = super(EmployeeDocumentInherit, self).unlink()
return res
class EmployeeChecklistInherit(models.Model):
_inherit = 'employee.checklist'
entry_obj_ids = fields.Many2many('hr.employee', 'entry_checklist_ids', 'hr_check_rel', 'check_hr_rel',
invisible=1)
exit_obj_ids = fields.Many2many('hr.employee', 'exit_checklist_ids', 'hr_exit_rel', 'exit_hr_rel',
invisible=1)

49
employee_check_list/models/settings.py

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, fields, api
class HRSettings(models.TransientModel):
_inherit = 'res.config.settings'
enable_checklist = fields.Boolean(string='Enable Checklist Progress in Kanban?', default=False)
@api.model
def get_values(self):
res = super(HRSettings, self).get_values()
config = self.env['ir.config_parameter'].sudo()
enable_checklist = config.get_param('employee_check_list.enable_checklist', default=False)
res.update(
enable_checklist=enable_checklist
)
return res
def set_values(self):
super(HRSettings, self).set_values()
self.env['ir.config_parameter'].sudo().set_param('employee_check_list.enable_checklist',
self.enable_checklist)
emp_obj = self.env['hr.employee'].search([])
for rec in emp_obj:
rec.write({'check_list_enable': self.enable_checklist})

BIN
employee_check_list/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
employee_check_list/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
employee_check_list/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
employee_check_list/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
employee_check_list/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
employee_check_list/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
employee_check_list/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
employee_check_list/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
employee_check_list/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
employee_check_list/static/description/assets/icons/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
employee_check_list/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
employee_check_list/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
employee_check_list/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
employee_check_list/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
employee_check_list/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
employee_check_list/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
employee_check_list/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
employee_check_list/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
employee_check_list/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
employee_check_list/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
employee_check_list/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
employee_check_list/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
employee_check_list/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
employee_check_list/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
employee_check_list/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
employee_check_list/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
employee_check_list/static/description/assets/screenshots/1checklist.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
employee_check_list/static/description/assets/screenshots/2checklist.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
employee_check_list/static/description/assets/screenshots/3checklist.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
employee_check_list/static/description/assets/screenshots/4checklist.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

BIN
employee_check_list/static/description/assets/screenshots/5checklist.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 482 KiB

BIN
employee_check_list/static/description/assets/screenshots/6checklist.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
employee_check_list/static/description/assets/screenshots/hero.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

BIN
employee_check_list/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
employee_check_list/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

646
employee_check_list/static/description/index.html

@ -0,0 +1,646 @@
<div class="container" style="padding: 1rem !important; margin-bottom: 1rem !important;">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between"
style="border-bottom: 1px solid #d5d5d5;">
<div class="my-3">
<img src="./assets/icons/logo.png" style="width: auto !important; height: 40px !important;">
</div>
<div class="my-3 d-flex align-items-center">
<div
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="background-color: #875A7B !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
</div>
</div>
<div class="container" style="padding: 0rem 1.5rem 4rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12"
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
Employee Exit/Entry Checklist</h1>
<p
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
Manages Employees Entry & Exit Process
</p>
<img src="./assets/screenshots/hero.png" class="img-responsive" width="100%" height="auto" />
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
</div>
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
A well functioning human resource department will lay down a number procedure and process before an
employee during joining/resigning time. It may be submission/Return of a certificate or attending a
conference etc. A person has to undergo all these checklist items before being admitted/resigned.
The module simplifies the process by providing you a checklist to mark the proceedings. It will also
display the PercentPie of the checklist items completed.
</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 pt-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Managing entry/exit process.</h4>
</div>
</div>
<div class="col-md-6 pl-3 pt-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Automatic process on document attachments.</h4>
</div>
</div>
<div class="col-md-6 pl-3 pt-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Option to enable Gauge widget for employee Kanban.</h4>
</div>
</div>
<div class="col-md-6 pl-3 pt-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Entry/Exit Percentpie in employee form view.</h4>
</div>
</div>
<div class="col-md-6 pl-3 pt-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Entry Progressbar in employee tree view.</h4>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Entry/Exit Checklist</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Screenshots of the entry and exit checklists is shown below.
</p>
<img src="assets/screenshots/1checklist.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
<img src="assets/screenshots/2checklist.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Employee From View With PercentPie</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Entry and exit progrss are shown in the employee form view with PercentPie
</p>
<img src="assets/screenshots/3checklist.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Employee Tree View With Progressbar</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Extra column added in employee tree view with progressbar.
</p>
<img src="assets/screenshots/4checklist.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Employee Kanban View with Gauge</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Kanban view now has a gauge to show the progress of each employee.
</p>
<img src="assets/screenshots/5checklist.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Configuration</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Configuration view is shown below.
</p>
<img src="assets/screenshots/6checklist.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/project_report_pdf/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/task_deadline_reminder/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/export_stockinfo_xls/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/customer_product_qrcode/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/invoice_multi_approval/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/invoice_format_editor/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a
class="carousel-control-next" href="#demo1" data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-6">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-6">
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-whatsapp mr-2"></i>WhatsApp</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" />
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

36
employee_check_list/views/checklist_view.xml

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="action_entry_checklist" model="ir.actions.act_window">
<field name="name">Entry Checklist</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">employee.checklist</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('document_type', '=', 'entry')]</field>
<field name="context">{"default_document_type":'entry'}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a New Entry Checklist
</p>
</field>
</record>
<record id="action_exit_checklist" model="ir.actions.act_window">
<field name="name">Exit Checklist</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">employee.checklist</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('document_type', '=', 'exit')]</field>
<field name="context">{"default_document_type":'exit'}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a New Exit Checklist
</p>
</field>
</record>
<menuitem id="employee_entry_checklist_menu" name="Entry Checklist" parent="hr.menu_human_resources_configuration" sequence="3"
action="action_entry_checklist" groups="hr.group_hr_manager"/>
<menuitem id="employee_exit_checklist_menu" name="Exit Checklist" parent="hr.menu_human_resources_configuration" sequence="4"
action="action_exit_checklist" groups="hr.group_hr_manager"/>
</odoo>

66
employee_check_list/views/employee_form_inherit_view.xml

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record model="ir.ui.view" id="hr_employee_inherit_form_view">
<field name="name">hr.employee.form.view</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<field name="category_ids" position="after">
<div>
<field name="entry_progress" widget="percentpie"/>
<field name="exit_progress" widget="percentpie" class="oe_inline"/>
</div>
</field>
<page name="hr_settings" position="after">
<page name="checklist" string="Checklist">
<group>
<group name="entry_checklist" string="Entry Checklist">
<field name="entry_checklist_ids" widget="many2many_checkboxes"/>
<field name="check_list_enable" invisible="1"/>
</group>
<group name="exit_checklist" string="Exit Checklist">
<field name="exit_checklist_ids" widget="many2many_checkboxes"/>
</group>
</group>
</page>
</page>
</field>
</record>
<record model="ir.ui.view" id="hr_employee_inherit_tree_view">
<field name="name">hr.employee.tree.view</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_tree"/>
<field name="arch" type="xml">
<field name="coach_id" position="after">
<field name="entry_progress" widget="progressbar" optional="show"
options="{'max_field': 'maximum_rate'}">
</field>
</field>
</field>
</record>
<record model="ir.ui.view" id="hr_employee_inherit_kanban_view">
<field name="name">hr.employee.kanban.view</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.hr_kanban_view_employees"/>
<field name="arch" type="xml">
<xpath expr="//templates" position="before">
<field name="entry_progress"/>
<field name="maximum_rate"/>
<field name="check_list_enable" invisible="1"/>
</xpath>
<xpath expr="//ul/li[last()]" position="after">
<li t-if="record.check_list_enable.raw_value==1">
Entry Progress
<field name="entry_progress" widget="progressbar" style="width:120px;height:90px;cursor:pointer;"
options="{'max_field': 'maximum_rate'}">
</field>
</li>
</xpath>
</field>
</record>
</odoo>

30
employee_check_list/views/settings_view.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="hr_checklist_settings" model="ir.ui.view">
<field name="name">HR Settings</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="hr.res_config_settings_view_form"/>
<field name="priority" eval="50" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('app_settings_block')]" position="after">
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-6 o_setting_box">
<div class="o_setting_right_pane">
<label for="enable_checklist"/>
<span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
<div class="content-group">
<div class="mt16">
<field name="enable_checklist"/>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</data>
</odoo>

50
product_return_pos/README.md

@ -0,0 +1,50 @@
.. image:: https://img.shields.io/badge/licence-AGPL--1-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Product Return In POS
=====================
POS Order Return.
Configuration
=============
* No additional configurations needed
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developers: Anusha P P@cybrosys
Version 13: Nimisha Murali@cybrosys
Version 14: Jibin James@cybrosys
Version 15: Aiswarya J P@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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

22
product_return_pos/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Anusha P P (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models

54
product_return_pos/__manifest__.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Anusha P P (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Product Return In POS',
'version': '15.0.1.0.0',
'category': 'Point of Sale',
'summary': 'POS Order Return',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'images': ['static/description/banner.png'],
'website': 'https://www.cybrosys.com',
'depends': ['point_of_sale'],
'data': [
'views/return.xml',
],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
'assets': {
'point_of_sale.assets': [
'product_return_pos/static/src/css/pos_return.css',
'product_return_pos/static/src/js/pos_return.js',
'product_return_pos/static/src/js/return.js',
'product_return_pos/static/src/js/models.js',
'product_return_pos/static/src/js/order_list_screen.js'
],
'web.assets_qweb': [
'product_return_pos/static/src/xml/pos_return.xml',
],
},
}

8
product_return_pos/doc/RELEASE_NOTES.md

@ -0,0 +1,8 @@
## Module <product_return_pos>
#### 08.11.2021
#### Version 15.0.1.0.0
##### ADD
- Initial Commit.

23
product_return_pos/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Anusha P P (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import pos_return

88
product_return_pos/models/pos_return.py

@ -0,0 +1,88 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Anusha P P (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import models, api, fields
class PosOrderReturn(models.Model):
_inherit = 'pos.order'
return_ref = fields.Char(string='Return Ref', readonly=True, copy=False)
return_status = fields.Selection([
('nothing_return', 'Nothing Returned'),
('partialy_return', 'Partialy Returned'),
('fully_return', 'Fully Returned')
], string="Return Status", default='nothing_return',
readonly=True, copy=False, help="Return status of Order")
@api.model
def get_lines(self, ref):
result = []
order_id = self.search([('pos_reference', '=', ref)], limit=1)
if order_id:
lines = self.env['pos.order.line'].search([('order_id', '=', order_id.id)])
for line in lines:
if line.qty - line.returned_qty > 0:
new_vals = {
'product_id': line.product_id.id,
'product': line.product_id.name,
'qty': line.qty - line.returned_qty,
'price_unit': line.price_unit,
'discount': line.discount,
'line_id': line.id,
}
result.append(new_vals)
return [result]
def _order_fields(self, ui_order):
order = super(PosOrderReturn, self)._order_fields(ui_order)
if 'return_ref' in ui_order.keys() and ui_order['return_ref']:
order['return_ref'] = ui_order['return_ref']
parent_order = self.search([('pos_reference', '=', ui_order['return_ref'])], limit=1)
updated_lines = ui_order['lines']
ret = 0
qty = 0
for uptd in updated_lines:
line = self.env['pos.order.line'].search([('order_id', '=', parent_order.id),
('id', '=', uptd[2]['line_id'])], limit=1)
if line:
line.returned_qty += -(uptd[2]['qty'])
for line in parent_order.lines:
qty += line.qty
ret += line.returned_qty
if qty-ret == 0:
if parent_order:
parent_order.return_status = 'fully_return'
print(parent_order.return_status)
elif ret:
if qty > ret:
if parent_order:
parent_order.return_status = 'partialy_return'
return order
class PosOrderLineReturn(models.Model):
_inherit = 'pos.order.line'
returned_qty = fields.Integer(string='Returned Qty', digits=0, readonly=True)

BIN
product_return_pos/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
product_return_pos/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
product_return_pos/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
product_return_pos/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
product_return_pos/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
product_return_pos/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
product_return_pos/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
product_return_pos/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
product_return_pos/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
product_return_pos/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
product_return_pos/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
product_return_pos/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
product_return_pos/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
product_return_pos/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
product_return_pos/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
product_return_pos/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
product_return_pos/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
product_return_pos/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
product_return_pos/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
product_return_pos/static/description/assets/modules/custom_fields_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
product_return_pos/static/description/assets/modules/dynamic_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
product_return_pos/static/description/assets/modules/export_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
product_return_pos/static/description/assets/modules/global_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
product_return_pos/static/description/assets/modules/list_view_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
product_return_pos/static/description/assets/modules/product_return_image.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
product_return_pos/static/description/assets/screenshots/hero.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
product_return_pos/static/description/assets/screenshots/screenshot1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

BIN
product_return_pos/static/description/assets/screenshots/screenshot2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
product_return_pos/static/description/assets/screenshots/screenshot3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
product_return_pos/static/description/assets/screenshots/screenshot4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
product_return_pos/static/description/assets/screenshots/screenshot5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
product_return_pos/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
product_return_pos/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

569
product_return_pos/static/description/index.html

@ -0,0 +1,569 @@
<div class="container" style="padding: 4rem 1.5rem !important">
<div class="row" style="height: 900px !important;">
<div class="col-sm-12 col-md-12 col-lg-12"
style="padding: 4rem 1rem !important; background-color: #714B67 !important; height: 600px !important; border-radius: 20px !important;">
<h1
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #FFFFFF !important; font-size: 3.5rem !important; text-align: center !important;">
Product Return In POS</h1>
<p
style="font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; color: #FFFFFF !important; font-size: 1.4rem !important; text-align: center !important;">
Manages Product Return From POS Frontend
</p>
<img src="./assets/screenshots/hero.png" class="img-responsive" width="100%" height="auto" />
</div>
</div>
<div class="row">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin-bottom: 2rem !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-compass mr-2"></i>Explore this module
</h2>
</div>
<div class="col-md-6">
<a href="#overview" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Overview</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
Learn more about this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#features" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Features</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
View features of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
<div class="col-md-6">
<a href="#screenshots" style="text-decoration: none !important;">
<div class="row"
style="background-color: #f5f2f5 !important; border-radius: 10px !important; margin: 1rem !important; padding: 1.5em !important; height: 100px !important;">
<div class="col-8">
<h3
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.2rem !important;">
Screenshots</h3>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #714B67 !important; font-size: 0.9rem !important;">
See key screenshots of this module</p>
</div>
<div class="col-4 text-right d-flex justify-content-end align-items-center">
<i class="fa fa-chevron-right" style="color: #714B67 !important;"></i>
</div>
</div>
</a>
</div>
</div>
<div class="row" id="overview">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-pie-chart mr-2"></i>Overview
</h2>
</div>
<div class="col-mg-12 pl-3">
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important; line-height: 30px !important;">
This app will help you to return the products from the POS user interface.</p>
</div>
</div>
<div class="row" id="features">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-star mr-2"></i>Features
</h2>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Manage Returns from POS Interface</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Manage Product Return through POS interface.</p>
</div>
</div>
<div class="col-md-6 pl-3 py-3 d-flex">
<div>
<img src="assets/icons/check.png">
</div>
<div>
<h4
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Track Return Reference and Status.</h4>
<p
style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;">
Possible to track return reference and status.</p>
</div>
</div>
</div>
<div class="row" id="screenshots">
<div class="col-md-12" style="border-bottom: 1px solid #d5d5d5 !important; margin: 2rem 0 !important">
<h2
style="font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important; color: #714B67 !important; font-size: 1.5rem !important;">
<i class="fa fa-image mr-2"></i>Screenshots
</h2>
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-2"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Create a normal order</h4>
<img src="assets/screenshots/screenshot1.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Click on Return button In order to return products</h4>
<img src="assets/screenshots/screenshot2.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Select the order and click on Return</h4>
<img src="assets/screenshots/screenshot3.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
Return some of the products</h4>
<img src="assets/screenshots/screenshot4.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
<div class="col-lg-12 my-2">
<h4 class="mt-3"
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;">
We get the return reference and status of the return from backend also</h4>
<img src="assets/screenshots/screenshot5.png" class="img-responsive img-thumbnail border" width="100%"
height="auto" />
</div>
</div>
<!-- SUGGESTED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/dynamic_accounts_report/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/dynamic_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/product_return_pos/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/product_return_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/master_search/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/global_image.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/project_report_pdf/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/export_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/list_view_sticky_header/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/list_view_image.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/dynamic_product_fields/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/custom_fields_image.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a
class="carousel-control-next" href="#demo1" data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF SUGGESTED PRODUCTS -->
<!-- OUR SERVICES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Services</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px">
</div>
<h6 class="text-center" style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</section>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<section class="container" style="margin-top: 6rem !important;">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Our Industries</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px"
width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;">
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" width="48px">
<h5
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</section>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- FOOTER -->
<!-- Footer Section -->
<section class="container" style="margin: 5rem auto 2rem;">
<div class="row" style="max-width:1540px;">
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center">
<h2 style="color: #212529 !important;">Need Help?</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;" />
</div>
</div>
<!-- Contact Cards -->
<div class="row d-flex justify-content-center align-items-center"
style="max-width:1540px; margin: 0 auto 2rem auto;">
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; ">
<div class="row mt-4">
<div class="col-lg-4">
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a>
</div>
<div class="col-lg-4">
<a href="https://api.WhatsApp.com/send?phone=918606827707" target="_blank"
class="btn btn-block mb-2 deep_hover"
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i
class="fa fa-WhatsApp mr-2"></i>WhatsApp</a>
</div>
<div class="col-lg-4">
<a href="mailto:info@cybrosys.com" target="_blank" class="btn btn-block deep_hover"
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i
class="fa fa-envelope mr-2"></i>info@cybrosys.com</a>
</div>
</div>
</div>
</div>
<!-- End of Contact Cards -->
</section>
<!-- Footer -->
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; ">
<!-- Logo -->
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;">
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" />
</div>
<!-- End of Logo -->
<div class="col-lg-12">
<hr
style="margin-top: 3rem;background: linear-gradient(90deg, rgba(2,0,36,0) 0%, rgba(229,229,229,1) 33%, rgba(229,229,229,1) 58%, rgba(0,212,255,0) 100%); height: 2px; border-style: none;">
<!-- End of Footer Section -->
</div>
</div>
</section>
<!-- END OF FOOTER -->
</div>

56
product_return_pos/static/src/css/pos_return.css

@ -0,0 +1,56 @@
.ticket-screen .return-button {
color: #f0f0f0;
display: inline-block;
box-sizing: border-box;
-moz-box-sizing: border-box;
/* height: 20px; */
padding: 4px 8px;
margin: 3px;
margin-bottom: 0px;
margin-right: 2px;
padding-top: 0px;
background: #8b8b8b;
border-top-left-radius: 3px;
border-top-right-radius: 3px;
vertical-align: top;
line-height: 20px;
text-align: center;
box-shadow: 0px -5px 10px -6px rgb(82,82,82) inset;
cursor: pointer;
min-width: 45px;
}
.ticket-screen .order-list tr.highlight{
transition: all 150ms linear;
background: rgb(110,200,155) !important;
color: white;
}
.ticket-screen .order-list td tr.lowlight{
transition: all 150ms linear;
background: rgb(216, 238, 227);
}
.ticket-screen .order-list tr.lowlight:nth-child(even){
transition: all 150ms linear;
background: rgb(227, 246, 237);
}
.return-screen .searchbox{
right: auto;
margin-left: 50px;
margin-top:8px;
left: 25%;
}
.ticket-screen .refreshbutton{
right: 10px;
margin-right: 5px;
margin-top:8px;
left: auto;
}
.reprint_order_screen .searchbox input{
width: 120px;
}
.ticket-screen .order-list{
font-size: 15px;
width: 100%;
line-height: 40px;
}

162
product_return_pos/static/src/js/models.js

@ -0,0 +1,162 @@
odoo.define('product_return_pos.models',function(require) {
"use strict";
var models = require('point_of_sale.models');
var gui = require('point_of_sale.Gui');
var core = require('web.core');
var QWeb = core.qweb;
var rpc = require('web.rpc');
var _t = require('web.core')._t;
var session = require('web.session');
models.load_models({
model: 'pos.order',
fields: ['name', 'partner_id','date_order','amount_total', 'amount_tax',
'pos_reference','lines','state','session_id','company_id','return_ref','return_status'],
loaded: function(self, orders){
self.orders = orders;
}
},
{
model: 'pos.order.line',
fields: ['product_id','qty','price_unit','price_subtotal_incl','order_id','discount','returned_qty'],
loaded: function(self,order_lines){
self.order_line = [];
for (var i = 0; i < order_lines.length; i++) {
self.order_line[i] = order_lines[i];
}
}
});
var _super_orderline = models.Orderline;
models.Orderline = models.Orderline.extend({
set_line_id: function(line_id){
this.line_id = line_id;
},
export_as_JSON: function(){
var json = _super_orderline.prototype.export_as_JSON.apply(this,arguments);
json.line_id = this.line_id;
return json;
},
init_from_JSON: function(json){
_super_orderline.prototype.init_from_JSON.apply(this,arguments);
this.line_id = json.line_id;
},
});
var _super = models.Order;
models.Order = models.Order.extend({
add_product: function (product, options) {
var order = this.pos.get_order();
_super.prototype.add_product.call(this, product, options);
if (options !== undefined) {
if (options.extras !== undefined) {
for (var prop in options.extras) {
if (prop === 'return_ref') {
this.return_ref = options.extras['return_ref']
this.trigger('change', this);
}
if (prop === 'label') {
order.selected_orderline.set_line_id(options.extras['label']);
}
}
}
}
},
export_as_JSON: function(){
var json = _super.prototype.export_as_JSON.apply(this,arguments);
json.return_ref = this.return_ref;
return json;
},
init_from_JSON: function(json){
_super.prototype.init_from_JSON.apply(this,arguments);
this.return_ref = json.return_ref;
}
});
models.PosModel.extend({
_save_to_server: function (orders, options) {
if (!orders || !orders.length) {
var result = $.Deferred();
result.resolve([]);
return result;
}
var fields = _.find(this.models,function(model){ return model.model === 'pos.order'; }).fields;
options = options || {};
var self = this;
var timeout = typeof options.timeout === 'number' ? options.timeout : 7500 * orders.length;
// Keep the order ids that are about to be sent to the
// backend. In between create_from_ui and the success callback
// new orders may have been added to it.
var order_ids_to_sync = _.pluck(orders, 'id');
// we try to send the order. shadow prevents a spinner if it takes too long. (unless we are sending an invoice,
// then we want to notify the user that we are waiting on something )
var args = [_.map(orders, function (order) {
order.to_invoice = options.to_invoice || false;
return order;
})];
return rpc.query({
model: 'pos.order',
method: 'create_from_ui',
args: args,
kwargs: {context: session.user_context},
}, {
timeout: timeout,
shadow: !options.to_invoice
})
.then(function (server_ids) {
_.each(order_ids_to_sync, function (order_id) {
self.db.remove_order(order_id);
});
self.set('failed',false);
if (server_ids.length != 0){
for (var item in server_ids){
rpc.query({
model: 'pos.order',
method: 'search_read',
args: [[['id', '=', server_ids[item]]], fields],
limit: 1,
})
.then(function (order){
self.orders.unshift(order[0]);
});
}
}
self.load_server_data();
return server_ids;
}).catch(function (type, error){
if(error.code === 200 ){ // Business Logic Error, not a connection problem
//if warning do not need to display traceback!!
if (error.data.exception_type == 'warning') {
delete error.data.debug;
}
// Hide error if already shown before ...
if ((!self.get('failed') || options.show_error) && !options.to_invoice) {
this.showpopup('error-traceback',{
'title': error.data.message,
'body': error.data.debug
});
}
self.set('failed',error);
}
console.error('Failed to send orders:', orders);
});
},
});
});

196
product_return_pos/static/src/js/order_list_screen.js

@ -0,0 +1,196 @@
odoo.define('product_return_pos.order_list_screen',function(require) {
"use strict";
var models = require('point_of_sale.models');
var gui = require('point_of_sale.Gui');
var core = require('web.core');
var QWeb = core.qweb;
var rpc = require('web.rpc');
var _t = require('web.core')._t;
var session = require('web.session');
const ControlButtonsMixin = require('point_of_sale.ControlButtonsMixin');
const NumberBuffer = require('point_of_sale.NumberBuffer');
const { onChangeOrder, useBarcodeReader } = require('point_of_sale.custom_hooks');
const { useState , useRef} = owl.hooks;
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
const ProductScreen = require('point_of_sale.ProductScreen');
const { useListener } = require('web.custom_hooks');
const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup');
const IndependentToOrderScreen = require('point_of_sale.IndependentToOrderScreen');
const { posbus } = require('point_of_sale.utils');
const { Gui } = require('point_of_sale.Gui');
class OrderListScreenWidget extends IndependentToOrderScreen {
constructor() {
super(...arguments);
useListener('filter-selected', this._onFilterSelected);
useListener('search', this._onSearch);
this.searchDetails = {};
this.filter = null;
this._initializeSearchFieldConstants();
}
mounted() {
var self = this;
this.render();
var orders = this.env.pos.orders;
var search_timeout = null;
}
back() {
this.close();
}
reload(){
window.location.reload();
}
return_click(order){
this.return_order(order);
}
get ordersList() {
const filterCheck = (order) => {
return true;
};
const { fieldName, searchTerm } = this.searchDetails;
const searchField = this._searchFields[fieldName];
const searchCheck = (order) => {
if (!searchField) return true;
const repr = searchField.repr(order);
if (repr === null) return true;
if (!searchTerm) return true;
return repr && repr.toString().toLowerCase().includes(searchTerm.toLowerCase());
};
const predicate = (order) => {
return filterCheck(order) && searchCheck(order);
};
return this.orderList.filter(predicate);
}
_onFilterSelected(event) {
this.filter = event.detail.filter;
this.render();
}
get orderList() {
return this.env.pos.orders;
}
get _searchFields() {
const fields = {
RECEIPT_NUMBER: {
repr: (order) => order.name,
displayName: this.env._t('Receipt Number'),
modelField: 'pos_reference',
},
DATE: {
repr: (order) => order.date_order,
displayName: this.env._t('Date'),
modelField: 'date_order',
},
CUSTOMER: {
repr: (order) => order.partner_id[1],
displayName: this.env._t('Customer'),
modelField: 'partner_id.display_name',
},
RETURN_REF: {
repr: (order) => order.return_ref,
displayName: this.env._t('Return Ref'),
modelField: 'return_ref',
},
};
return fields;
}
_onSearch(event) {
const searchDetails = event.detail;
Object.assign(this.searchDetails, searchDetails);
this.render();
}
get searchBarConfig() {
return {
searchFields: new Map(
Object.entries(this._searchFields).map(([key, val]) => [key, val.displayName])
),
filter: { show: true, options: this.filterOptions },
defaultSearchDetails: this.searchDetails,
};
}
get filterOptions() {
const orderStates = this._getOrderStates();
return orderStates;
}
_getOrderStates() {
const states = new Map();
states.set('All Orders', {
text: this.env._t('All Orders'),
});
return states;
}
getStatus(order) {
const screen = order.get_screen_data();
return this._getOrderStates().get(this.__screenToStatusMap[screen.name]).text;
}
get _screenToStatusMap() {
return {
ProductScreen: 'Ongoing',
PaymentScreen: 'Payment',
ReceiptScreen: 'Receipt',
};
}
_initializeSearchFieldConstants() {
this.constants = {};
Object.assign(this.constants, {
searchFieldNames: Object.keys(this._searchFields),
screenToStatusMap: this._screenToStatusMap,
});
}
render_list(orders){
var contents = this.el.querySelector('.order-list-contents');
contents.innerHTML = "";
for(var i = 0, len = Math.min(orders.length,1000); i < len; i++){
var order = orders[i];
var orderline_html = this.env.qweb.render('OrderLine',{widget: this, order:order});
var orderline = document.createElement('tbody');
orderline.innerHTML = orderline_html;
orderline = orderline.childNodes[1];
contents.appendChild(orderline);
}
}
return_order(order_id){
var self = this;
var client = ''
if (order_id.partner_id){
client = order_id.partner_id[0];
}
if (order_id && order_id.return_status ==='fully_return'){
Gui.showPopup('ErrorPopup',{
'title': "ERROR",
'body': "This is a fully returned order",});
}
else if (order_id && order_id.return_ref) {
Gui.showPopup('ErrorPopup',{
'title': "ERROR",
'body': "This is a returned order",});
}
else{
Gui.showPopup('ReturnWidget',{ref: order_id.pos_reference,client:client});
}
}
}
OrderListScreenWidget.template = 'OrderListScreenWidget';
Registries.Component.add(OrderListScreenWidget);
return OrderListScreenWidget;
});

147
product_return_pos/static/src/js/pos_return.js

@ -0,0 +1,147 @@
odoo.define('product_return_pos.pos_return',function(require) {
"use strict";
var models = require('point_of_sale.models');
var gui = require('point_of_sale.Gui');
var core = require('web.core');
var QWeb = core.qweb;
var rpc = require('web.rpc');
var _t = require('web.core')._t;
var session = require('web.session');
const ControlButtonsMixin = require('point_of_sale.ControlButtonsMixin');
const NumberBuffer = require('point_of_sale.NumberBuffer');
const { onChangeOrder, useBarcodeReader } = require('point_of_sale.custom_hooks');
const { useState, useRef ,useSubEnv} = owl.hooks;
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
const ProductScreen = require('point_of_sale.ProductScreen');
const { useListener } = require('web.custom_hooks');
const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup');
class ReturnWidget extends AbstractAwaitablePopup {
constructor() {
super(...arguments);
this.state = useState({ inputValue: this.props.startingValue });
this.inputRef = useRef('input');
useSubEnv({ attribute_components: [] });
}
mounted() {
this.render_list()
}
render_list(){
$("#table-body").empty();
var lines = [];
var pos_reference = this.props.ref
rpc.query({
model: 'pos.order',
method: 'get_lines',
args: [pos_reference],
}).then(function (result) {
lines = result[0];
for(var j=0;j < lines.length; j++){
var product_line = lines[j];
var rows = "";
var id = product_line.product_id
var price_unit = product_line.price_unit;
var name =product_line.product;
var qty = product_line.qty;
var line_id = product_line.line_id;
var discount = product_line.discount;
rows += "<tr><td>" + id + "</td><td>" + price_unit +" </td><td>" + name + "</td><td>" + qty + "</td><td>" + discount + "</td><td>" + line_id + "</td></tr>";
$(rows).appendTo("#list tbody");
var rows = document.getElementById('list').rows;
for (var row = 0; row < rows.length; row++) {
var cols = rows[row].cells;
cols[0].style.display = 'none';
cols[1].style.display = 'none';
cols[5].style.display = 'none';
}
}
var table = document.getElementById('list');
var tr = table.getElementsByTagName("tr");
for (var i = 1; i < tr.length; i++) {
var td = document.createElement('td');
var input = document.createElement('input');
input.setAttribute("type", "text");
input.setAttribute("value", 0);
input.setAttribute("id", "text"+i);
td.appendChild(input);
tr[i].appendChild(td);
}
}).catch(function () {
alert("NO DATA")
});
}
click_confirm() {
var self = this;
var myTable = document.getElementById('list').tBodies[0];
var count = 0;
var c = 1;
for (r=0, n = myTable.rows.length; r < n; r++) {
var row = myTable.rows[r]
var return_qty = document.getElementById("text"+c).value
if (row.cells[3].innerHTML < return_qty){
count +=1
}
c = c+1
}
if (count > 0){
alert('Please check the Returned Quantity,it is higher than purchased')
}
else{
c = 1;
// OrderSuper.prototype.set_client.call(this, this.client);
for (var r=0, n = myTable.rows.length; r < n; r++) {
row = myTable.rows[r]
return_qty = document.getElementById("text"+c).value;
var product = this.env.pos.db.get_product_by_id(row.cells[0].innerHTML);
if (!product) {
return;
}
if (return_qty > 0){
this.env.pos.get_order().add_product(product, {
price: row.cells[1].innerHTML,
quantity: -(return_qty),
discount:row.cells[4].innerHTML,
merge: false,
extras: {return_ref: this.props.ref,
label:row.cells[5].innerHTML},
});
}
c = c+1
}
if (this.props.client){
this.env.pos.get_order().set_client(this.env.pos.db.get_partner_by_id(this.props.client));
}
}
this.trigger('close-popup');
this.showScreen('ProductScreen')
}
}
ReturnWidget.template = 'ReturnWidget';
ReturnWidget.defaultProps = {
confirmText: 'Return',
cancelText: 'Cancel',
title: 'Confirm ?',
body: '',
};
Registries.Component.add(ReturnWidget);
return ReturnWidget;
});

43
product_return_pos/static/src/js/return.js

@ -0,0 +1,43 @@
odoo.define('product_return_pos.return',function(require) {
"use strict";
var models = require('point_of_sale.models');
var gui = require('point_of_sale.Gui');
var core = require('web.core');
var QWeb = core.qweb;
var rpc = require('web.rpc');
var _t = require('web.core')._t;
var session = require('web.session');
const NumberBuffer = require('point_of_sale.NumberBuffer');
const { onChangeOrder, useBarcodeReader } = require('point_of_sale.custom_hooks');
const PosComponent = require('point_of_sale.PosComponent');
const Registries = require('point_of_sale.Registries');
const ProductScreen = require('point_of_sale.ProductScreen');
const { useListener } = require('web.custom_hooks');
const { useState, useRef } = owl.hooks;
const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup');
class ReturnButton extends PosComponent {
constructor() {
super(...arguments);
useListener('click', this.button_click);
}
button_click() {
var orders = this.env.pos.orders;
this.showScreen('OrderListScreenWidget',{orders:orders});
}
}
ReturnButton.template = 'ReturnButton';
ProductScreen.addControlButton({
component: ReturnButton,
condition: function () {
return true;
},
position: ['before', 'SetPricelistButton'],
});
Registries.Component.add(ReturnButton);
return ReturnButton;
});

107
product_return_pos/static/src/xml/pos_return.xml

@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="ReturnButton" owl="1">
<div class='control-button'>
<i class='fa fa-rotate-left'/>
Return
</div>
</t>
<t t-name="OrderLine" owl="1">
<div>
<tr class='order-line' t-att-data-id='order.id'>
<td><t t-esc='order.pos_reference' /></td>
<td><t t-if="order.return_ref">
<t t-esc='order.return_ref'/>
</t></td>
<td><t t-esc='order.partner_id[1]' /></td>
<td><t t-esc='order.date_order' /></td>
<td><span class="return-button return_order" t-on-click="return_click">Return</span></td>
</tr>
</div>
</t>
<t t-name="OrderListScreenWidget" owl="1">
<div class="ticket-screen screen">
<div class="screen-content">
<section class="top-content">
<span class='button back' t-on-click="back">
<i class='fa fa-angle-double-left'></i>
Cancel
</span>
<SearchBar config="searchBarConfig" style="right: auto; margin-left: 90px; margin-top:8px;" placeholder="'Search Orders...'" />
<span class='button refresh refreshbutton' t-on-click="reload" style="right: auto; margin-left: 180px; margin-top:8px; left: 85%;">
<i class="fa fa-refresh"></i>
Refresh
</span>
</section>
<div class="orders">
<div class="header-row">
<div class="col start wide">Date</div>
<div class="col start wide">Receipt Number</div>
<div class="col start">Customer</div>
<div class="col start">Return Ref</div>
</div>
<t t-foreach="ordersList" t-as="order" t-key="order.cid">
<div class="order-row pointer" t-on-click="return_click(order)">
<div class="col start wide">
<t t-esc="order.date_order"></t>
</div>
<div class="col start wide">
<t t-esc="order.pos_reference"></t>
</div>
<div class="col start">
<t t-esc="order.partner_id[1]"></t>
</div>
<div class="col start">
<t t-if="order.return_ref == false">
</t>
<t t-else="">
<t t-esc="order.return_ref"></t>
</t>
</div>
</div>
</t>
</div>
</div>
</div>
</t>
<t t-name="ReturnWidget" owl="1">
<div class="modal-dialog" role="dialog">
<div class="popup popup-selection product_return_pos" style="height: 80%; width: 150%;" >
<p class="title">Return Order</p>
<div class='selection scrollable-y touch-scrollable'>
<table id="list" cellspacing="1px" cellpadding="10px" text-align="center"
width="100%" style="border:1px;padding-left:1.16cm;">
<thead>
<tr>
<td>ID</td>
<td>Price</td>
<td>Name</td>
<td>Qty</td>
<td>Dis</td>
<td>Line ID</td>
<td>Returned Quantity</td>
</tr>
</thead>
<tbody id="table-body">
</tbody>
</table>
</div>
<div class="footer">
<div class="button confirm" t-on-click="click_confirm">
Return
</div>
<div class="button cancel" t-on-click="cancel">
Cancel
</div>
</div>
</div>
</div>
</t>
</templates>

31
product_return_pos/views/return.xml

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record model="ir.ui.view" id="view_pos_new_form_extended">
<field name="name">pos.order.form.extend</field>
<field name="model">pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='pos_reference']" position="after">
<field name="return_ref"/>
<field name="return_status"/>
</xpath>
<xpath expr="//field[@name='lines']//tree//field[@name='qty']" position="after">
<field name="returned_qty" invisible="1"/>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_pos_new_tree_extended">
<field name="name">pos.order.tree.extend</field>
<field name="model">pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_pos_order_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='pos_reference']" position="after">
<field name="return_ref"/>
</xpath>
</field>
</record>
</data>
</odoo>
Loading…
Cancel
Save