Browse Source

[ADD] Initial Commit

pull/134/merge
Ajmalcybrosys 6 years ago
parent
commit
dfab14395e
  1. 30
      automatic_payroll/README.rst
  2. 1
      automatic_payroll/__init__.py
  3. 18
      automatic_payroll/__manifest__.py
  4. 6
      automatic_payroll/doc/RELEASE_NOTES.md
  5. 2
      automatic_payroll/models/__init__.py
  6. 117
      automatic_payroll/models/auto_generate_payslips.py
  7. 35
      automatic_payroll/models/res_config_settings.py
  8. BIN
      automatic_payroll/static/description/automatic-payroll.gif
  9. BIN
      automatic_payroll/static/description/automatic_payroll-1.png
  10. BIN
      automatic_payroll/static/description/automatic_payroll-2.png
  11. BIN
      automatic_payroll/static/description/automatic_payroll-3.png
  12. BIN
      automatic_payroll/static/description/automatic_payroll-4.png
  13. BIN
      automatic_payroll/static/description/automatic_payroll-5.png
  14. BIN
      automatic_payroll/static/description/automatic_payroll-6.png
  15. BIN
      automatic_payroll/static/description/banner.png
  16. BIN
      automatic_payroll/static/description/checked.png
  17. BIN
      automatic_payroll/static/description/employee_orientation.jpeg
  18. BIN
      automatic_payroll/static/description/hr_employee_transfer.jpeg
  19. BIN
      automatic_payroll/static/description/hr_payslip_monthly_report.jpeg
  20. BIN
      automatic_payroll/static/description/icon.png
  21. 452
      automatic_payroll/static/description/index.html
  22. BIN
      automatic_payroll/static/description/oh_appraisal.jpeg
  23. BIN
      automatic_payroll/static/description/send_email_payslip.jpeg
  24. BIN
      automatic_payroll/static/description/timesheet_payroll.jpeg
  25. 40
      automatic_payroll/views/res_config_settings_view.xml
  26. 13
      automatic_payroll/views/schedule_cron.xml
  27. 40
      print_voucher_receipts/README.rst
  28. 23
      print_voucher_receipts/__init__.py
  29. 42
      print_voucher_receipts/__manifest__.py
  30. 6
      print_voucher_receipts/doc/RELEASE_NOTES.md
  31. 23
      print_voucher_receipts/models/__init__.py
  32. 59
      print_voucher_receipts/models/account_voucher_print.py
  33. BIN
      print_voucher_receipts/static/description/banner.png
  34. BIN
      print_voucher_receipts/static/description/icon.png
  35. BIN
      print_voucher_receipts/static/description/icon.png~
  36. BIN
      print_voucher_receipts/static/description/images/account_day_book.jpeg
  37. BIN
      print_voucher_receipts/static/description/images/account_reports_xlsx.jpeg
  38. BIN
      print_voucher_receipts/static/description/images/bank_book_dynamic_reports.png
  39. BIN
      print_voucher_receipts/static/description/images/cash_book_dynamic_reports.png
  40. BIN
      print_voucher_receipts/static/description/images/checked.png
  41. BIN
      print_voucher_receipts/static/description/images/cybrosys.png
  42. BIN
      print_voucher_receipts/static/description/images/day_book_dynamic_report.jpeg
  43. BIN
      print_voucher_receipts/static/description/images/dynamic_reports_pdf.png
  44. BIN
      print_voucher_receipts/static/description/images/pos_multivariant-2.png~
  45. BIN
      print_voucher_receipts/static/description/images/pos_multivariant-3.png~
  46. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts-1.png
  47. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts-2.png
  48. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts-3.png
  49. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts-4.png
  50. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts-4.png~
  51. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts-5.png
  52. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts-6.png
  53. BIN
      print_voucher_receipts/static/description/images/print_voucher_receipts.png
  54. 376
      print_voucher_receipts/static/description/index.html
  55. BIN
      print_voucher_receipts/static/description/pos_book_order-17.png~
  56. 13
      print_voucher_receipts/views/account_voucher_print.xml
  57. 189
      print_voucher_receipts/views/template.xml
  58. 48
      product_return_pos/README.md
  59. 22
      product_return_pos/__init__.py
  60. 43
      product_return_pos/__manifest__.py
  61. 6
      product_return_pos/doc/RELEASE_NOTES.md
  62. 23
      product_return_pos/models/__init__.py
  63. 86
      product_return_pos/models/pos_return.py
  64. BIN
      product_return_pos/static/description/banner.jpg
  65. BIN
      product_return_pos/static/description/cybro_logo.png
  66. BIN
      product_return_pos/static/description/icon.png
  67. 361
      product_return_pos/static/description/index.html
  68. BIN
      product_return_pos/static/description/pos_return_cybrosys_1.png
  69. BIN
      product_return_pos/static/description/pos_return_cybrosys_2.png
  70. BIN
      product_return_pos/static/description/pos_return_cybrosys_3.png
  71. BIN
      product_return_pos/static/description/pos_return_cybrosys_4.png
  72. BIN
      product_return_pos/static/description/pos_return_cybrosys_5.png
  73. 50
      product_return_pos/static/src/css/pos_return.css
  74. 417
      product_return_pos/static/src/js/pos_return.js
  75. 95
      product_return_pos/static/src/xml/pos_return.xml
  76. 13
      product_return_pos/views/pos_template.xml
  77. 31
      product_return_pos/views/return.xml

30
automatic_payroll/README.rst

@ -0,0 +1,30 @@
Automatic Payroll
=================
* Generate payslip batches automatically.
* The feature works with the help of scheduler.
Tech
====
* [Python] - Models
* [XML] - Odoo views
Installation
============
- www.odoo.com/documentation/12.0/setup/install.html
- Install our custom addon
Bug Tracker
===========
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Developer: Varsha Vivek, odoo@cybrosys.com
Maintainer
----------
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com.
Contacts
========
* Cybrosys Technologies <https://www.cybrosys.com>

1
automatic_payroll/__init__.py

@ -0,0 +1 @@
from . import models

18
automatic_payroll/__manifest__.py

@ -0,0 +1,18 @@
{
'name': 'Automatic Payroll',
'version': '13.0.1.0.0',
'category': 'Generic Modules/Human Resources',
'description': """Generate payslips automatically""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'maintainer': 'Cybrosys Techno Solutions',
'depends': ['base', 'hr_payroll_community'],
'data': ['views/schedule_cron.xml',
'views/res_config_settings_view.xml'],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

6
automatic_payroll/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <automatic_payroll>
#### 14.10.2019
#### Version 13.0.1.0.0
##### ADD
- Initial Commit

2
automatic_payroll/models/__init__.py

@ -0,0 +1,2 @@
from . import auto_generate_payslips
from . import res_config_settings

117
automatic_payroll/models/auto_generate_payslips.py

@ -0,0 +1,117 @@
# -*- coding: utf-8 -*-
from datetime import date, datetime
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models, _
from odoo.exceptions import UserError
class HrPayslipRunCron(models.Model):
"""
Automate payslip generation
1.Month First
2.Specific Date
3.Month End
"""
_inherit = 'hr.payslip.run'
@api.onchange('generate_payslip')
def _check(self):
"""Check the options and call the corresponding methods"""
if self.env['ir.config_parameter'].sudo().get_param('generate_payslip'):
if self.env['ir.config_parameter'].sudo().get_param(
'option', 'first') == 'first':
self.month_first()
elif self.env['ir.config_parameter'].sudo().get_param(
'option', 'specific') == 'specific':
self.specific_date()
elif self.env['ir.config_parameter'].sudo().get_param(
'option', 'end') == 'end':
self.month_end()
else:
raise UserError(_("Enable configuration settings"))
def month_first(self):
"""Method for automate month first option"""
today = fields.Date.today()
day = today.day
if day == 1:
self.generate_payslips()
else:
raise UserError(_("Today is not month first"))
pass
def month_end(self):
"""Method for automate month end option"""
today = fields.Date.today()
day_today = today.day
last_date = today + relativedelta(day=1, months=+1, days=-1)
last_day = last_date.day
if day_today == last_day:
self.generate_payslips()
else:
raise UserError(_("Today is not month end"))
pass
def specific_date(self):
"""Method for automate specific day option"""
val = int(self.env['ir.config_parameter'].sudo().get_param('generate_day'))
today = fields.Date.today()
day = today.day
if day == val:
self.generate_payslips()
else:
raise UserError(_("Can't generate payslips today"))
pass
def generate_payslips(self):
"""Method for generate payslip batches and payslips,
before that you must assign ongoing contracts for employees"""
batch_id = self.create([{
'name': 'Payslip Batch For ' + date.today().strftime('%B')
+ ' ' + str(date.today().year),
'date_start': fields.Date.to_string(date.today().replace(day=1)),
'date_end': fields.Date.to_string(
(datetime.now() + relativedelta(months=+1, day=1, days=-1)).date())
}])
generate_payslip = self.env['hr.payslip.employees']
contract_ids = self.env['hr.contract'].search([('state', '=', 'open')])
employee_ids = []
for line in contract_ids:
employee_ids.append(line.employee_id)
generate_payslip.create([{
'name': line.employee_id.id,
'work_phone': line.employee_id.work_phone or None,
'work_email': line.employee_id.work_email or None,
'department_id': line.employee_id.department_id or None,
'job_id': line.employee_id.job_id or None,
'parent_id': line.employee_id.parent_id or None,
}])
payslips = self.env['hr.payslip']
[run_data] = batch_id.read(
['date_start', 'date_end', 'credit_note'])
from_date = run_data.get('date_start')
to_date = run_data.get('date_end')
if not employee_ids:
raise UserError(_("You must select employee(s) to generate payslip(s)."))
for employee in employee_ids:
slip_data = self.env['hr.payslip'].onchange_employee_id(from_date, to_date, employee.id,
contract_id=False)
res = {
'employee_id': employee.id,
'name': slip_data['value'].get('name'),
'struct_id': slip_data['value'].get('struct_id'),
'contract_id': slip_data['value'].get('contract_id'),
'payslip_run_id': batch_id.id,
'input_line_ids': [(0, 0, x) for x in slip_data['value'].get('input_line_ids')],
'worked_days_line_ids': [
(0, 0, x) for x in slip_data['value'].get('worked_days_line_ids')],
'date_from': from_date,
'date_to': to_date,
'credit_note': run_data.get('credit_note'),
'company_id': employee.company_id.id,
}
payslips += self.env['hr.payslip'].create(res)
payslips.compute_sheet()
return {'type': 'ir.actions.act_window_close'}

35
automatic_payroll/models/res_config_settings.py

@ -0,0 +1,35 @@
from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
generate_payslip = fields.Boolean(help="Automatic generation of payslip batches"
" and payslips using cron job (Monthly)")
option = fields.Selection([
('first', 'Month First'),
('specific', 'Specific date'),
('end', 'Month End'),
], string='Option', default='first', help='Option to select the date to generate payslips')
generate_day = fields.Integer(string="Day", default=1,
help="payslip generated day in a month")
@api.model
def get_values(self):
"""get values from the fields"""
res = super(ResConfigSettings, self).get_values()
res.update(
generate_payslip=self.env['ir.config_parameter'].sudo().get_param('generate_payslip'),
generate_day=int(self.env['ir.config_parameter'].sudo().get_param('generate_day') or 1),
option=self.env['ir.config_parameter'].sudo().get_param('option') or 'first'
)
return res
def set_values(self):
"""Set values in the fields"""
super(ResConfigSettings, self).set_values()
self.env['ir.config_parameter'].sudo().set_param('generate_payslip', self.generate_payslip)
self.env['ir.config_parameter'].sudo().set_param('generate_day', int(self.generate_day))
self.env['ir.config_parameter'].sudo().set_param("option", self.option)

BIN
automatic_payroll/static/description/automatic-payroll.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

BIN
automatic_payroll/static/description/automatic_payroll-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
automatic_payroll/static/description/automatic_payroll-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
automatic_payroll/static/description/automatic_payroll-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
automatic_payroll/static/description/automatic_payroll-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
automatic_payroll/static/description/automatic_payroll-5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
automatic_payroll/static/description/automatic_payroll-6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
automatic_payroll/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
automatic_payroll/static/description/checked.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
automatic_payroll/static/description/employee_orientation.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
automatic_payroll/static/description/hr_employee_transfer.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
automatic_payroll/static/description/hr_payslip_monthly_report.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

BIN
automatic_payroll/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

452
automatic_payroll/static/description/index.html

@ -0,0 +1,452 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/font-awesome.min.css">
</head>
<body>
<div class="row" style="margin: 0;padding: 2rem 3rem 4rem;position: relative;color: #000;background-position: center;background: #f9f9f9;">
<div class="col-md-7 col-sm-12 col-xs-12" style="padding: 0px">
<div style=" margin: 0 0 0px;padding: 20px 0 10;font-size: 23px;line-height: 35px;font-weight: 400;color: #000;border-top: 1px solid rgba(255,255,255,0.1);border-bottom: 1px solid rgba(255,255,255,0.11);text-align: left;">
<h1 style="font-size: 39px;font-weight: 600;margin: 0px !important;">Automatic Payroll</h1>
<h3 style="font-size: 21px;margin-top: 8px;position: relative;">Generate payslip batches automatically.</h3>
</div>
<h2 style="font-weight: 600;font-size: 1.8rem;margin-top: 15px;">Key Highlights</h2>
<ul style=" padding: 0 1px; list-style: none; ">
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="checked.png" style=" width: 22px; margin-right: 6px; " alt="check"> Automatic payroll generation for Odoo12 community edition.</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="checked.png" style=" width: 22px; margin-right: 6px; " alt="check"> Generate payslip batches via adding all active employees.</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="checked.png" style=" width: 22px; margin-right: 6px; " alt="check"> The feature works with the help of scheduler.</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="checked.png" style=" width: 22px; margin-right: 6px; " alt="check"> Schedule the activity for month first,month end or specific day. </li>
<div style=" text-align: left; ">
<a href="#video" style="display: -webkit-inline-box;display: -webkit-inline-flex;display: -ms-inline-flexbox; display: inline-flex;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center; -webkit-justify-content: center;-ms-flex-pack: center;justify-content: center;padding: 0 30px;font-size: 15px;height: 56px;text-transform: uppercase;border: 1px solid #f21692;color: #000;border-radius: 50px;text-decoration: none;letter-spacing: 1px;"><i class="fa fa-eye" aria-hidden="true" style="margin-right: 5px;"></i> Video Demo</a>
</div>
</div>
<div class="col-md-5 col-sm-12 col-xs-12">
<img src="automatic-payroll.gif" class="img-responsive" alt="">
</div>
</div>
<div>
<div class="row" style=" margin: 0; padding: 2rem 3rem 1rem; ">
<h2 style="font-weight: 600;text-align: center;width: 100%;">Overview</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<h3 class="oe_slogan" style="text-align: center;font-size: 21px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 31px;font-weight: 500;letter-spacing: .5px;margin-bottom: 21px;">
<strong>The module brings you an automatic payroll generation function further improvising the standard Odoo HR Payroll application. The module provisions to generate payslip batches automatically once in a month.
<p style="font-size:20px;">The feature works with the help of scheduler.</p></strong>
<br/>
</div>
<section class="oe_container" style="padding: 2rem 3rem 1rem;background: #f9f9f9;">
<div class="panel with-nav-tabs panel-default" style=" border: none;background-color: #f9f9f9; ">
<div class="panel-heading" style=" border: none;background-color: #f9f9f9;">
<ul class="nav nav-tabs" style="display: flex;justify-content: center">
<li class="active"><a href="#tab1default" data-toggle="tab" style="font-weight: 600;font-size: 20px;padding: 10px 20px;color: #000;">Features</a></li>
<li><a href="#tab2default" data-toggle="tab" style="font-weight: 600;font-size: 20px;padding: 10px 20px;color: #000;">Screenshots</a></li>
</ul>
</div>
<div class="panel-body" style=" background: #fff; ">
<div class="tab-content">
<div class="tab-pane fade active show" id="tab1default">
<h3 class="text-center alert" style="font-weight:500;color: #091E42;background: #f9f9f9;text-align: left;border-radius: 0;" >Automatic Payroll</h3>
<ul>
<li class="mb8" style="font-family: Roboto;color: #000000;list-style-type: square;font-size: 19px;line-height: 34px;">
Available in Odoo 12.0 community edition.
</li>
<li class="mb8" style="font-family: Roboto;color: #000000;list-style-type: square;font-size: 19px;line-height: 34px;">
The feature works with the help of scheduler.
</li>
<li class="mb8" style="font-family: Roboto;color: #000000;list-style-type: square;font-size: 19px;line-height: 34px;">
Scheduler would check the options in the configuration settings and automatically generate payslip batches via adding all active employees possessing active contracts.
</li>
<li class="mb8" style="font-family: Roboto;color: #000000;list-style-type: square;font-size: 19px;line-height: 34px;">
The module helps to generate payslips for month first,month end or specific day in a month.
</li>
<li class="mb8" style="font-family: Roboto;color: #000000;list-style-type: square;font-size: 19px;line-height: 34px;">
The end user can confirm the generated payslip batch as well as the payslips in draft state.
</li>
</ul>
</div>
<div class="tab-pane fade" id="tab2default">
<section class="oe_container">
<div style="margin-bottom:4%;">
<h4 class="text-center mb32 alert" style="font-weight:400;color: #091E42;background: #f9f9f9;text-align: left;border-radius: 0;">
To enable/disable Automatic payroll, go to Payroll > Configuration > Settings > Enable/Disable Automatic Payroll.
</h4>
<div class="mt16 mb16">
<img src="automatic_payroll-1.png" style="width: 100%;" class="img img-responsive center-block">
</div>
</div>
<div style="margin-bottom:4%;">
<h4 class="text-center mb32 alert" style="font-weight:400;color: #091E42;background: #f9f9f9;text-align: left;border-radius: 0;">
Three options are available.
</h4>
<div class="mt16 mb16">
<img src="automatic_payroll-2.png" style="width: 100%;" class="img img-responsive center-block">
</div>
</div>
<div style="margin-bottom:4%;">
<h4 class="text-center mb32 alert" style="font-weight:400;color: #091E42;background: #f9f9f9;text-align: left;border-radius: 0;">
Upon selecting the second option (Specific date), there appears a field to enter specific date of the month. Based on date the scheduler shall generate payslip batches for the month.
</h4>
<div class="mt16 mb16">
<img src="automatic_payroll-3.png" style="width: 100%;" class="img img-responsive center-block">
</div>
</div>
<div style="margin-bottom:4%;">
<h4 class="text-center mb32 alert" style="font-weight:400;color: #091E42;background: #f9f9f9;text-align: left;border-radius: 0;">
The feature works with the help of scheduler.
</h4>
<div class="mt16 mb16">
<img src="automatic_payroll-4.png" style="width: 100%;" class="img img-responsive center-block">
</div>
</div>
<div style="margin-bottom:4%;">
<h4 class="text-center mb32 alert" style="font-weight:400;color: #091E42;background: #f9f9f9;text-align: left;border-radius: 0;">
During execution of scheduler, it would check contract table for active contracts and later create a new payslip batch via adding all active employees.
</h4>
<div class="mt16 mb16">
<img src="automatic_payroll-5.png" style="width: 100%;" class="img img-responsive center-block">
</div>
</div>
</section>
</div>
<div class="tab-pane fade" id="tab3default">Default 3</div>
</div>
</div>
</div>
</section>
<section id="video" class="" style="padding: 2rem 3rem 3rem;height:670px; ">
<div class="col-md-12" style="padding: 0;text-align: center;margin-bottom: 50px;">
<h2 style="font-weight: 600;text-align: center;margin-bottom: 25px;width: 100%;">Video Demo</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<p>Odoo12 Automatic Payroll Demo</p>
<a href="https://www.youtube.com/watch?v=3mXktqqDixg&t=1s" target="_blank">
<img src="automatic_payroll-6.png" style="width:80%; height:576px;"></a>
</div>
</section>
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<h2 style="font-weight: 600;text-align: center;margin-bottom: 25px;width: 100%;">Suggested Products</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<div id="demo" class="row carousel slide mt64 mb32" 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/12.0/hr_payslip_monthly_report/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="hr_payslip_monthly_report.jpeg">
</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/10.0/payroll_timesheet/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="timesheet_payroll.jpeg">
</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/12.0/oh_appraisal/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="oh_appraisal.jpeg">
</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/9.0/send_email_payslips/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="send_email_payslip.jpeg">
</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/12.0/employee_orientation/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="employee_orientation.jpeg">
</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/12.0/hr_employee_transfer/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="hr_employee_transfer.jpeg">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo" 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="#demo" 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>
</section>
<section class="row" style="padding: 2rem 3rem 1rem;margin:0px">
<h2 style="font-weight: 600;margin-bottom: 20px;text-align: center;width: 100%;">Our Service</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<div class="row" style=" display: flex; justify-content: center; flex-wrap: wrap;width: 100%; ">
<!-- <div style="display:flex;padding-top: 20px;justify-content: space-between;"> -->
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-customization.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Customization
</a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-implementation.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Implementation </a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-integration.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Integration
</a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-support.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Odoo Support</a>
</h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
<img src="https://www.cybrosys.com/images/hire-odoo-developer.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Hire Odoo Developers</a>
</h3>
</a>
</div>
<!-- </div> -->
</div>
</section>
<section class="row" style="padding: 2rem 3rem 1rem;margin:0px">
<div class="row" style="margin: 0">
<h2 style="font-weight: 600;margin-bottom: 20px;text-align: center;width: 100%;">Our Industries</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<!-- <div style="display:flex;justify-content: space-between;flex-wrap:wrap;"> -->
<div class="row" style="width: 100%">
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-1.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
Trading
</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
Easily procure and sell your products.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-2.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;" style=" margin-bottom: 10px; ">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
Manufacturing</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;">
Plan, track and schedule your operations.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-3.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
Restaurant</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;">
Run your bar or restaurant methodical.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-4.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;">
POS</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;">
Easy configuring and convivial selling.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-5.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 0px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
E-commerce & Website</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
Mobile friendly, awe-inspiring product pages.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-6.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Hotel Management</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
An all-inclusive hotel management application.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-7.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Education</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
A Collaborative platform for educational management.
</h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-8.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;">
Service Management</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;">
Keep track of services and invoice accordingly.
</h3>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-footer-bg.png); background-repeat:no-repeat; background-size:100%;padding: 13% 0% 6% 0%;">
<div class="oe_slogan" style="margin-top:10px !important;margin-bottom: 0px;">
<div style=" display: flex; justify-content: center; flex-wrap: wrap; ">
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="mailto:odoo@cybrosys.com"><i class="fa fa-envelope"></i> Email us </a>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-phone"></i> Contact Us </a>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="https://www.cybrosys.com/images/logo.png" style="width: 190px; margin-bottom: 25px;margin-top: 30px;" class="center-block">
<div style=" display: flex; justify-content: center; flex-wrap: wrap; ">
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px; ;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
</div>
</div>
</section>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>

BIN
automatic_payroll/static/description/oh_appraisal.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

BIN
automatic_payroll/static/description/send_email_payslip.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

BIN
automatic_payroll/static/description/timesheet_payroll.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

40
automatic_payroll/views/res_config_settings_view.xml

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_name_form" model="ir.ui.view">
<field name="name">res_config_settings_view</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="hr_payroll_community.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[hasclass('settings')]" position="inside">
<div class="app_settings_block" data-string="Payroll" string="Payroll" data-key="hr_payroll_community"
groups="hr_payroll_community.group_hr_payroll_community_manager">
<div class="row mt16 o_settings_container" id="payroll_settings">
<div class="col-lg-6 col-12 o_setting_box">
<div class="o_setting_left_pane">
<field name="generate_payslip"/>
</div>
<div class="o_setting_right_pane">
<label string="Automatic Payroll" for="generate_payslip"/>
<div class="text-muted">
Automatic Generation of Payslip batches and Payslips
</div>
<div class="content-group" attrs="{'invisible': [('generate_payslip', '=', False)]}">
<group>
<field name="option" class="o_light_label" widget="radio" required="True"/>
</group>
<div class="text-muted" attrs="{'invisible': [('option', 'in', ['first','end'])]}">
Note that, each month have either 30 or 31 days, with the exception of February,which had 29 days and gained an extra day every fourth year.
</div>
<group col="2">
<field name="generate_day" attrs="{'invisible': [('option', 'in', ['first','end'])]}" string="Day" type="object"/>
</group>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

13
automatic_payroll/views/schedule_cron.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ir_cron_payslip_generation" model="ir.cron">
<field name="name">Generate payslip batches and payslips</field>
<field name="model_id" ref="hr_payroll_community.model_hr_payslip_run"/>
<field name="state">code</field>
<field name="code">model._check()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
</record>
</odoo>

40
print_voucher_receipts/README.rst

@ -0,0 +1,40 @@
Payment/Receipt voucher print
=============================
* Used to print payment/receipt voucher.
Installation
============
- www.odoo.com/documentation/12.0/setup/install.html
- Install our custom addon
License
-------
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3)
(http://www.gnu.org/licenses/agpl.html)
Company
-------
* 'Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer:
odoo v12 - Varsha Vivek
Contacts
--------
* Mail Contact : odoo@cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com
Further information
===================
HTML Description: `<static/description/index.html>`__

23
print_voucher_receipts/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Varsha Vivek (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

42
print_voucher_receipts/__manifest__.py

@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Varsha Vivek (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': 'Print Voucher Receipts',
'version': '13.0.1.0.0',
'summary': """Print receipts from invoicing """,
'description': """Print receipts from invoicing""",
'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'maintaner': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'category': 'Accounting',
'depends': ['base', 'account'],
'data': ['views/template.xml',
'views/account_voucher_print.xml'],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'application': False,
'auto_install': False,
}

6
print_voucher_receipts/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <print_voucher_receipts>
#### 29.08.2019
#### Version 13.0.1.0.0
##### ADD
- Initial commit for print_voucher_receipts

23
print_voucher_receipts/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: Varsha Vivek (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 account_voucher_print

59
print_voucher_receipts/models/account_voucher_print.py

@ -0,0 +1,59 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Varsha Vivek (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 api, models, fields, _
from odoo.exceptions import UserError
class AccountMove(models.Model):
"""Inherit account.move model and enable the print option"""
_inherit = "account.move"
@api.depends('amount_total')
def _compute_amount_total_words(self):
for receipt in self:
receipt.amount_total_words = receipt.currency_id.amount_to_text(receipt.amount_total)
amount_total_words = fields.Char("Total (In Words)", compute="_compute_amount_total_words")
def print_report(self):
"""Method to print report"""
return self.env.ref(
'print_voucher_receipts.action_print_receipt').report_action(self, data='')
class VoucherReceiptPrint(models.AbstractModel):
"""Class for print the Qweb report"""
_name = 'report.print_voucher_receipts.print_voucher_receipt'
@api.model
def _get_report_values(self, docids, data):
for move in self.env['account.move'].search([('id', 'in', docids)]):
if move.type not in ('in_receipt', 'out_receipt'):
raise UserError(_("Only receipts could be printed."))
self.model = self.env.context.get('active_model')
docs = self.env.context.get('active_ids')
if docs == None:
docs = docids
return {
'data': self.env['account.move'].search([('id', 'in', docs)])
}

BIN
print_voucher_receipts/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

BIN
print_voucher_receipts/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
print_voucher_receipts/static/description/icon.png~

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
print_voucher_receipts/static/description/images/account_day_book.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

BIN
print_voucher_receipts/static/description/images/account_reports_xlsx.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
print_voucher_receipts/static/description/images/bank_book_dynamic_reports.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
print_voucher_receipts/static/description/images/cash_book_dynamic_reports.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

BIN
print_voucher_receipts/static/description/images/checked.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
print_voucher_receipts/static/description/images/cybrosys.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
print_voucher_receipts/static/description/images/day_book_dynamic_report.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
print_voucher_receipts/static/description/images/dynamic_reports_pdf.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
print_voucher_receipts/static/description/images/pos_multivariant-2.png~

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

BIN
print_voucher_receipts/static/description/images/pos_multivariant-3.png~

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts-4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts-4.png~

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts-5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts-6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
print_voucher_receipts/static/description/images/print_voucher_receipts.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

376
print_voucher_receipts/static/description/index.html

@ -0,0 +1,376 @@
<div class="row" style="margin: 0;position: relative;color: #000;background-position: center;background: #ffffff;border-bottom: 1px solid #e4e4e4;text-align: center; margin: auto; display: flex;justify-content: center;"> <a href="https://www.cybrosys.com/" target="_blank"><img src="images/cybrosys.png" style=" width: 293px; padding: 1rem 0rem; margin: auto" alt="cybrosys-logo"></a> </div>
<div class="row" style="margin:75px 0;position: relative;color: #000;background-position: center;background: #ffffff;border-bottom: 1px solid #e4e4e4; padding-bottom: 30px;">
<div class="col-md-7 col-sm-12 col-xs-12" style="padding: 0px">
<div style=" margin: 0 0 0px;padding: 20px 0 10;font-size: 23px;line-height: 35px;font-weight: 400;color: #000;border-top: 1px solid rgba(255,255,255,0.1);border-bottom: 1px solid rgba(255,255,255,0.11);text-align: left;">
<h1 style="font-size: 39px;font-weight: 600;margin: 0px !important;">Payment/Receipt Voucher Print</h1>
<h3 style="font-size: 21px;margin-top: 8px;position: relative;">Print voucher receipts from invoicing</h3>
</div>
<h2 style="font-weight: 600;font-size: 1.8rem;margin-top: 15px;">Key Highlights</h2>
<ul style=" padding: 0 1px; list-style: none; ">
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Payment/Receipt voucher print for Odoo12 community edition.</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Print customer payment voucher receipts.</li>
<li style="display: flex;align-items: center;padding: 8px 0;font-size: 18px;"><img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Print vendor voucher receipts.</li>
</ul>
</div>
<div class="col-md-5 col-sm-12 col-xs-12"> <img src="images/print_voucher_receipts.png" class="img-responsive" alt=""> </div>
</div>
<div>
<section class="oe_container" style="padding: 1rem 0rem 1rem; background-color: #ffffff !important;">
<div class="row py-4 px-3">
<div class="w-100" style="padding-top:30px;padding-bottom:45px;border-radius: 10px;">
<ul role="tablist" class="nav nav-pills justify-content-center" data-tabs="tabs" id="pills-tab" style="border: none;background: unset;">
<li class="nav-item mr-1 mb-3" style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #d31c22;background-color: #d31c22;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;"> <a id="pills-home-tab" data-toggle="pill" href="#pills-home" role="tab" aria-controls="pills-home" aria-selected="true" class="nav-link active show" style="color: #000000;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400;text-align: center;
color: #fff;">Overview </a> </li>
<li class="nav-item mr-1 mb-3" style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #d31c22;background-color: #d31c22;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;"> <a id="pills-home-tab" data-toggle="pill" href="#pills-home1" role="tab" aria-controls="pills-home" aria-selected="true" class="nav-link " style="color: #000000;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400; text-align: center;
color: #fff;" >Features </a> </li>
<li class="nav-item mr-1 mb-3" style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #ffffff;background-color: #d31c22;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;"> <a class="nav-link" id="pills-profile-tab" data-toggle="pill" href="#pills-profile" role="tab" aria-controls="pills-profile" aria-selected="false" style="color: #000000;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400; text-align: center;
color: #fff;">Screenshots </a> </li>
<!-- <li class="nav-item mr-1 mb-3" style="font-size: 1.05rem;font-weight: 400;transition: all .15s ease;color: #ffffff;background-color: #d31c22;box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);border: 0;font-family: 'Open Sans',sans-serif;width: 140px;border-radius: 0.30rem;"> <a class="nav-link" id="pills-profile-tab" data-toggle="pill" href="#pills-video" role="tab" aria-controls="pills-profile" aria-selected="false" style="color: #000000;line-height: 33px;border: 0;border-radius: .25rem;font-weight: 400; text-align: center;
color: #fff;">Video </a> </li> -->
</ul>
<div class="tab-content" id="pills-tabContent"
style="padding-top: 30px; padding-bottom: 30px; padding: 30px;">
<div class="px-3 pt-1 tab-pane fade active show" id="pills-home" role="tabpanel" aria-labelledby="
pills-home-tab">
<!-- Overview-->
<h2 style="font-weight: 600;text-align: center;width: 100%;">Overview</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<h3 class="oe_slogan" style="text-align: center;font-size: 19px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 31px;font-weight: 400;letter-spacing: .5px;margin-bottom: 21px;">
Payment/Receipt voucher print module helps with printing of voucher receipts. Currently there is no option for printing payments/receipts voucher. This module helps the user to print the vouchers from Odoo invoicing.</h3>
</div>
<div class="px-3 pt-1 tab-pane fade " id="pills-home1" role="tabpanel" aria-labelledby="
pills-home-tab">
<!-- feature tab-->
<h2 style="font-weight: 600;text-align: center;width: 100%;">Payment/Receipt Voucher Print</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<ul>
<li class="mb8" style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Payment/Receipt voucher print for Odoo12 community edition.</li>
<li class="mb8" style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Print customer payment voucher receipts.</li>
<li class="mb8" style="font-family: Roboto;color: #000;list-style-type: square;font-size: 19px;line-height: 50px; background-color: #3a34380d;padding-left: 20px;border-radius: 7px;list-style: none;">
<img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Print vendor voucher receipts.</li>
</ul>
</div>
<!-- Screenshot tab-->
<div class="px-3 tab-pane fade" id="pills-profile" role="tabpanel" aria-labelledby="pills-profile-tab" >
<div class="tab-pane">
<h2 style="font-weight: 600;text-align: center;width: 100%;">Screenshots</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<div>
<section class="oe_container">
<div id="demo" class="row carousel slide mb32" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert" style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;"> <img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check"> After installation, go to Customers > Receipts for printing customer payment voucher receipt.</h3>
<div style=""> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/print_voucher_receipts-1.png"> </div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert" style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px;"> <img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Choose one receipt that you want to print and click on the print button.</h3>
<div style=""> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/print_voucher_receipts-2.png"> </div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="mb32 alert" style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px; "> <img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Print voucher receipt.</h3>
<div style=""> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/print_voucher_receipts-3.png"> </div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert" style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0; font-size: 18px; "> <img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">For vendor payment voucher receipt print, go to Vendors > Receipts</h3>
<div style=""> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/print_voucher_receipts-4.png"> </div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert" style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0;font-size: 18px;"> <img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Choose one receipt that you want to print and click on the print button.</h3>
<div style="">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/print_voucher_receipts-5.png"> </div>
</div>
</div>
<div class="carousel-item" style="min-height: 0px;">
<div class="col-xs-12 col-sm-12 col-md-12 mb16 mt16" style="float: left;">
<h3 class="alert" style="font-weight:400;color: #091E42;background: #fff;text-align: left;border-radius: 0;font-size: 18px;"> <img src="images/checked.png" style=" width: 22px; margin-right: 6px; " alt="check">Print voucher receipts.</h3>
<div style="">
<img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/print_voucher_receipts-6.png"> </div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#demo" 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="#demo" 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>
</section>
</div>
</div>
</div>
<!-- <div class="px-3 pt-1 tab-pane fade" id="pills-video" role="tabpanel" aria-labelledby=" -->
<!-- pills-home-tab"> -->
<!-- Video-->
<!-- <h2 style="font-weight: 600;text-align: center;width: 100%;">Video</h2> -->
<!-- /*<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">*/ -->
<!-- <center><p>Payment/Receipt Voucher Print Demo</p> -->
<!--<a href="https://www.youtube.com/watch?v=57QWXrMYe84&feature=youtu.be" target="_blank"> <img src="addon-youtube.png" style="width:80%;"></a>-->
<!-- <div class="s_panel_video" data-video-id="h95gK1oNLHA?rel=0" style="cursor:pointer;">
<img class="img-fluid s_tooltip_tabs_tooltip_image s_figure_link pb0" src="images/pos_multivariant_youtube.png" alt="Cybrosys Cover Video" style="max-width:100%;">
</div> -->
</center>
</div>
<!-- faq tab-->
<div class="px-2 px-lg-4 pt-3 tab-pane fade" id="pills-contact" role="tabpanel" aria-labelledby="pills-contact-tab">
<ul class="list-unstyled">
</ul>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="padding: 2rem 3rem 1rem;">
<h2 style="font-weight: 600;text-align: center;margin-bottom: 25px;width: 100%;">Suggested Products</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<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/12.0/account_reports_xlsx/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;"> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/account_reports_xlsx.jpeg"> </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/12.0/dynamic_reports_pdf/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;"> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/dynamic_reports_pdf.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/12.0/day_book_dynamic_report/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;"> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/day_book_dynamic_report.jpeg"> </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/12.0/bank_book_dynamic_reports/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;"> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/bank_book_dynamic_reports.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/12.0/cash_book_dynamic_reports/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;"> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/cash_book_dynamic_reports.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/12.0/account_day_book/" target="_blank">
<div style="box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);border-radius: 10px;"> <img class="img img-responsive center-block" style="border-top-left-radius: 10px;border-top-right-radius: 10px;" src="images/account_day_book.jpeg"> </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>
</section>
<section class="row" style="padding: 2rem 3rem 1rem;margin:0px">
<h2 style="font-weight: 600;margin-bottom: 20px;text-align: center;width: 100%;">Our Service</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<div class="row" style=" display: flex; justify-content: center; flex-wrap: wrap;width: 100%; ">
<!-- <div style="display:flex;padding-top: 20px;justify-content: space-between;"> -->
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"> <a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-customization.png" style="width: 100%;border-radius: 100%;"/> </a> </div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;"> <a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Odoo Customization </a> </h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"> <a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-erp-implementation.png" style="width: 100%;border-radius: 100%;"/> </a> </div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;"> <a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Odoo Implementation </a> </h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"> <a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-erp-integration.png" style="width: 100%;border-radius: 100%;"/> </a> </div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;"> <a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Odoo Integration </a> </h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"> <a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-erp-support.png" style="width: 100%;border-radius: 100%;"/> </a> </div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;"> <a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Odoo Support</a> </h3>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;"> <a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank"> <img src="https://www.cybrosys.com/images/hire-odoo-developer.png" style="width: 100%;border-radius: 100%;"/> </a> </div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;"> <a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Hire Odoo Developers</a> </h3>
</a> </div>
<!-- </div> -->
</div>
</section>
<section class="row" style="padding: 2rem 3rem 1rem;margin:0px">
<div class="row" style="margin: 0">
<h2 style="font-weight: 600;margin-bottom: 20px;text-align: center;width: 100%;">Our Industries</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<!-- <div style="display:flex;justify-content: space-between;flex-wrap:wrap;"> -->
<div class="row" style="width: 100%">
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-1.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;"> Trading </a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;"> Easily procure and sell your products. </h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-2.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;" style=" margin-bottom: 10px; ">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;"> Manufacturing</a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;"> Plan, track and schedule your operations. </h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-3.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;"> Restaurant</a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;"> Run your bar or restaurant methodical. </h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-4.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank" style="list-style: none; color:#000; text-decoration: none;font-family: 'Montserrat',sans-serif;"> POS</a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;font-family: 'Montserrat',sans-serif;"> Easy configuring and convivial selling. </h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-5.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 0px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> E-commerce & Website</a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;"> Mobile friendly, awe-inspiring product pages. </h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-6.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Hotel Management</a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;"> An all-inclusive hotel management application. </h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-7.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Education</a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;"> A Collaborative platform for educational management. </h3>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12" style=" margin-bottom: 10px; ">
<div >
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;"> <a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank"> <img src="https://www.cybrosys.com/images/odoo-index-industry-8.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/> </a> </div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;"> <a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank" style="list-style: none; color:#000; text-decoration: none; font-family: 'Montserrat',sans-serif;"> Service Management</a> </h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 12px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px; font-family: 'Montserrat',sans-serif;"> Keep track of services and invoice accordingly. </h3>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="padding: 0% 0% 6% 0%;">
<center>
<div class="col-md-12" style="margin: auto !important;
width: 70%;
padding: 30px;">
<h2 style="font-weight: 600;text-align: center;width: 100%;">Need Any Help?</h2>
<hr style="margin-top: 0px;margin-bottom: 2%;border: 0;text-align: center;border-top: 3px solid #d21c22;width: 5%;">
<h4 style="font-size:16px;"> If you have anything to share with us based on your use of this module, please let us know. We are ready to offer our support. </h4>
<div class="col-md-6" style="float:left; padding:20px;">
<h4><i class="fa fa-envelope"></i>Email us </h4>
<p>odoo@cybrosys.com / info@cybrosys.com</p>
</div>
<div class="col-md-6" style="float:left; padding:20px;">
<h4><i class="fa fa-phone"></i> Contact Us </h4>
<a href="https://www.cybrosys.com/contact/" target="_blank"> www.cybrosys.com</a>
</div>
</div>
</center>
</section>
<section class="oe_container" style="padding: 0% 0% 6% 0%;">
<div class="oe_slogan" style="margin-bottom: 0px;">
<div style=" display: flex; justify-content: center; flex-wrap: wrap; ">
</div>
<br>
<img src="https://www.cybrosys.com/images/logo.png" style="width: 190px; margin-bottom: 25px;margin-top: 30px;" class="center-block">
<div style=" display: flex; justify-content: center; flex-wrap: wrap; "> <a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px; height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a>
</td>
</div>
</div>
</section>
</div>

BIN
print_voucher_receipts/static/description/pos_book_order-17.png~

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

13
print_voucher_receipts/views/account_voucher_print.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<report
id="action_print_receipt"
string="Receipts"
model="account.move"
report_type="qweb-pdf"
name="print_voucher_receipts.print_voucher_receipt"
file="print_voucher_receipts.print_voucher_receipt"
/>
</data>
</odoo>

189
print_voucher_receipts/views/template.xml

@ -0,0 +1,189 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="print_voucher_receipt">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<div align="right">
<t t-set="address">
<address t-field="data.partner_id"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'/>
<div t-if="data.partner_id.vat" class="mt16">
<t t-esc="data.company_id.country_id.vat_label or 'Tax ID'"/>:
<span t-field="data.partner_id.vat"/>
</div>
</t>
</div>
<br/>
<h3 t-if="data.type == 'out_receipt' and data.state == 'posted'">Sales Receipt
<span t-field="data.name"/>
</h3>
<h3 t-if="data.type == 'out_receipt'and data.state == 'draft'">Draft Sales Receipt
<span t-field="data.name"/>
</h3>
<h3 t-if="data.type == 'in_receipt' and data.state == 'posted'">Purchase Receipt
<span t-field="data.name"/>
</h3>
<h3 t-if="data.type == 'in_receipt' and data.state == 'draft'">Draft Purchase Receipt
<span t-field="data.name"/>
</h3>
<br/>
<div id="informations" class="row mt32 mb32">
<div class="col-auto mw-100 mb-2" t-if="data.ref" name="reference">
<label t-if="data.type == 'out_receipt'">
<b>Invoice Reference:</b>
</label>
<label t-if="data.type == 'in_receipt'">
<b>Bill Reference:</b>
</label>
<p class="m-0" t-field="data.ref"/>
</div>
<div class="col-auto mw-100 mb-2" t-if="data.invoice_date" name="date">
<label t-if="data.type == 'out_receipt'">
<b>Invoice Date:</b>
</label>
<label t-if="data.type == 'in_receipt'">
<b>Bill Date:</b>
</label>
<p class="m-0" t-field="data.invoice_date"/>
</div>
<div class="col-auto mw-100 mb-2" t-if="data.date and data.type == 'in_receipt'" name="date">
<label t-if="data.type == 'out_receipt'">
<b>Accounting Date:</b>
</label>
<label t-if="data.type == 'in_receipt'">
<b>Accounting Date:</b>
</label>
<p class="m-0" t-field="data.date"/>
</div>
<div class="col-auto mw-100 mb-2" t-if="data.invoice_date_due" name="invoice_date_due">
<label t-if="data.type == 'out_receipt'">
<b>Due Date:</b>
</label>
<label t-if="data.type == 'in_receipt'">
<b>Due Date:</b>
</label>
<p class="m-0" t-field="data.invoice_date_due"/>
</div>
</div>
<table border="2" class="table" cellpadding="10">
<t t-set="current_subtotal" t-value="0"/>
<tbody>
<tr>
<th>Product</th>
<th>Label</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Tax</th>
<th>Amount</th>
</tr>
<t t-foreach="data.invoice_line_ids" t-as="t">
<t t-set="current_subtotal" t-value="current_subtotal + t.price_subtotal"
groups="account.group_show_line_subtotals_tax_excluded"/>
<t t-set="current_subtotal" t-value="current_subtotal + t.price_subtotal"
groups="account.group_show_line_subtotals_tax_included"/>
<tr>
<td>
<t t-esc="t.product_id.name"/>
</td>
<td>
<t t-esc="t.name"/>
</td>
<td>
<t t-esc="t.quantity"/>
</td>
<td>
<t t-esc="t.price_unit"/>
</td>
<td>
<t t-esc="t.tax_ids.name"/>
</td>
<td>
<t t-esc="t.price_subtotal"/>
</td>
</tr>
</t>
</tbody>
</table>
<div class="clearfix">
<div id="total" class="row">
<div t-attf-class="#{'col-4' if report_type != 'html' else 'col-sm-7 col-md-5'} ml-auto">
<table class="table table-sm;page-break-inside: avoid;">
<tr class="border-black o_subtotal" style="">
<td>
<strong>Subtotal</strong>
</td>
<td class="text-right">
<span t-field="data.amount_untaxed"/>
</td>
</tr>
<t t-foreach="data.amount_by_group" t-as="amount_by_group">
<tr style="">
<t t-if="len(data.line_ids.filtered(lambda line: line.tax_line_id)) == 1 and data.amount_untaxed == amount_by_group[2]">
<td>
<span t-esc="amount_by_group[0]"/>
</td>
<td class="text-right o_price_total">
<span t-esc="amount_by_group[3]"/>
</td>
</t>
<t t-else="">
<td>
<span t-esc="amount_by_group[0]"/>
<span>&amp;nbsp;
<span>on</span>
<t t-esc="amount_by_group[4]"/>
</span>
</td>
<td class="text-right o_price_total">
<span t-esc="amount_by_group[3]"/>
</td>
</t>
</tr>
</t>
<tr class="border-black o_total">
<td>
<strong>Total</strong>
</td>
<td class="text-right">
<span t-field="data.amount_total"/>
</td>
</tr>
<tr class="border-black">
<td>
<strong>Amount Due</strong>
</td>
<td class="text-right">
<span t-field="data.amount_residual"/>
</td>
</tr>
</table>
</div>
</div>
</div>
<p t-if="data.name">
Please use the following communication for your payment :
<b>
<span t-field="data.name"/>
</b>
</p>
<p id="total_in_words" class="mb16">
<strong>Total (In Words):</strong>
<span t-field="data.amount_total_words"/>
</p>
<p t-if="data.invoice_payment_term_id" name="invoice_payment_term_id">
Payment terms:
<span t-field="data.invoice_payment_term_id"/>
</p>
</div>
</t>
</t>
</template>
</odoo>

48
product_return_pos/README.md

@ -0,0 +1,48 @@
.. 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
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

43
product_return_pos/__manifest__.py

@ -0,0 +1,43 @@
# -*- 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/>.
#
#############################################################################
{
'name': 'Product Return In POS',
'version': '13.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.jpg'],
'website': 'https://www.cybrosys.com',
'depends': ['point_of_sale'],
'data': [
'views/return.xml',
'views/pos_template.xml',
],
'qweb': ['static/src/xml/pos_return.xml'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

6
product_return_pos/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <product_return_pos>
#### 10.10.2019
#### Version 13.0.1.0.0
##### ADD
- Migrated to Version 13.

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

86
product_return_pos/models/pos_return.py

@ -0,0 +1,86 @@
# -*- 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'
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/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
product_return_pos/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
product_return_pos/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

361
product_return_pos/static/description/index.html

@ -0,0 +1,361 @@
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-header-banner.png);background-repeat:no-repeat;background-size:100%;padding: 4% 0% 2% 15%;background-position-y: -107px;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="font-size: 35px;color: #fff;font-weight: 900;text-transform: uppercase;text-align: left;margin: 0;margin-bottom: 16px;">
Product Return In POS
</h2>
<h3 class="oe_slogan" style="font-size: 25px;color: #fff;font-weight: 600;text-align: left;opacity: 1;margin: 0 !important;">
Manages Product Return From POS Frontend
</h3>
<h5 class="oe_slogan" style="text-align: left;background: #fff;width: 293px;padding: 10px;color: #080808 !important;opacity: 1 !important;font-weight: 600;font-size: 20px;">
<a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">Cybrosys Technologies</a>
</h5>
<a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">
<div style="width: 215px;margin-left: 57%;text-align: center;background: #ffffff;height: 215px;border-radius: 100%;display: flex;justify-content: center;align-items: center;box-shadow: 0 0 12px 4px #00000059;">
<img src="https://www.cybrosys.com/images/cybro-logo-oca.png" alt="cybrosys technologies" style="width: 180px;"/>
</div>
</a>
</div>
</section>
<section class="oe_container" style="padding: 1% 0% 3% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Overview
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
This app will help you to return the products from the POS user interface.
</h3>
</div>
</section>
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-banner.png); background-repeat:no-repeat; background-size:cover;padding: 10% 0% 25% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Features
</h2>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Manage Product Return through POS interface.
</h3>
<h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
<img src="https://www.cybrosys.com/images/ico-tick.png">
Track Return Reference and Status
</h3>
</div>
</section>
<section class="oe_container" style="padding: 3% 0% 0% 15%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Screenshots
</h2>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<div>
<img src="https://www.cybrosys.com/images/ico-tick.png">
Create a normal order.
</div>
</h3>
<div class="oe_row oe_spaced">
<img src="pos_return_cybrosys_1.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<div>
<img src="https://www.cybrosys.com/images/ico-tick.png">
Click on Return button In order to return products.
</div>
</h3>
<div class="oe_row oe_spaced">
<img src="pos_return_cybrosys_2.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<div><img src="https://www.cybrosys.com/images/ico-tick.png">
Select the order and click on Return.
</div>
</h3>
<div class="oe_row oe_spaced">
<img src="pos_return_cybrosys_3.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<div>
<img src="https://www.cybrosys.com/images/ico-tick.png">
Return some of the products.
</div>
</h3>
<div class="oe_row oe_spaced">
<img src="pos_return_cybrosys_4.png" alt="" style="width: 95%;"/>
</div>
<h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
<div><img src="https://www.cybrosys.com/images/ico-tick.png">
We get the return reference and status of the return from backend also.
</div>
</h3>
<div class="oe_row oe_spaced">
<img src="pos_return_cybrosys_5.png" alt="" style="width: 95%;"/>
</div>
</div>
</section>
<section class="oe_container" style="padding: 7px 0% 0% 3%;">
<div class="oe_row oe_spaced">
<a style="color: #080808 !important;" href="https://apps.odoo.com/apps/modules/browse?search=cybrosys" target="_blank"><img src="https://www.cybrosys.com/images/view-more-apps.jpg" alt="cybrosys technologies" style="width: 100%;margin-bottom: 50px;"/></a>
</div>
</section>
<section class="oe_container" style="padding: 1% 0% 0% 3%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Our Services
</h2>
<div style="display:flex;padding-top: 20px;justify-content: space-between;">
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-customization.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
Odoo Customization
</a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-implementation.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
Odoo Implementation </a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-integration.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
Odoo Integration
</a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-erp-support.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
Odoo Support</a>
</h3>
</div>
<div style="flex-basis: 18%;">
<div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
<img src="https://www.cybrosys.com/images/hire-odoo-developer.png" style="width: 100%;border-radius: 100%;"/>
</a>
</div>
<h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
<a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
Hire Odoo Developers</a>
</h3>
</a>
</div>
</div>
</div>
</section>
<section class="oe_container" style="padding: 1% 0% 0% 3%;">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
Our Industries
</h2>
<div style="display:flex;justify-content: space-between;flex-wrap:wrap;">
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-1.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
Trading
</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Easily procure and sell your products.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-2.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
Manufacturing</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Plan, track and schedule your operations.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-3.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
Restaurant</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Run your bar or restaurant methodical.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-4.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
POS</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Easy configuring and convivial selling.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-5.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 0px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
E-commerce & Website</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Mobile friendly, awe-inspiring product pages.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-6.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
Hotel Management</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
An all-inclusive hotel management application.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-7.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
Education</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
A Collaborative platform for educational management.
</h3>
</div>
</div>
<div style="flex-basis: 32%;padding-top: 20px;">
<div style="width:30%; float:left;">
<div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
<img src="https://www.cybrosys.com/images/odoo-index-industry-8.png" alt="Odoo Industry" style=" border-radius: 100%;width:100%;"/>
</a>
</div>
</div>
<div style="width:70%;float:left;">
<h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
<a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
Service Management</a>
</h3>
<h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
Keep track of services and invoice accordingly.
</h3>
</div>
</div>
</div>
</div>
</section>
<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-footer-bg.png); background-repeat:no-repeat; background-size:100%;padding: 13% 0% 6% 0%;">
<div class="oe_slogan" style="margin-top:10px !important;margin-bottom: 0px;">
<div>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="mailto:odoo@cybrosys.com"><i class="fa fa-envelope"></i> Email us </a>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-phone"></i> Contact Us </a>
<a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="https://www.cybrosys.com/images/logo.png" style="width: 190px; margin-bottom: 25px;margin-top: 30px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px; ;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
</div>
</div>
</section>

BIN
product_return_pos/static/description/pos_return_cybrosys_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

BIN
product_return_pos/static/description/pos_return_cybrosys_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

BIN
product_return_pos/static/description/pos_return_cybrosys_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 KiB

BIN
product_return_pos/static/description/pos_return_cybrosys_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
product_return_pos/static/description/pos_return_cybrosys_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

50
product_return_pos/static/src/css/pos_return.css

@ -0,0 +1,50 @@
.return-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;
}
.return-screen .order-list tr.highlight{
transition: all 150ms linear;
background: rgb(110,200,155) !important;
color: white;
}
.return-screen .order-list td tr.lowlight{
transition: all 150ms linear;
background: rgb(216, 238, 227);
}
.return-screen .order-list tr.lowlight:nth-child(even){
transition: all 150ms linear;
background: rgb(227, 246, 237);
}
.return-screen .searchbox{
right: auto;
margin-left: 90px;
margin-top:8px;
left: 50%;
}
.reprint_order_screen .searchbox input{
width: 120px;
}
.return-screen .order-list{
font-size: 15px;
width: 100%;
line-height: 40px;
}

417
product_return_pos/static/src/js/pos_return.js

@ -0,0 +1,417 @@
odoo.define('product_return_pos.return',function(require) {
"use strict";
var models = require('point_of_sale.models');
var screens = require('point_of_sale.screens');
var ScreenWidget = screens.ScreenWidget;
var gui = require('point_of_sale.gui');
var core = require('web.core');
var QWeb = core.qweb;
var PopupWidget = require('point_of_sale.popups');
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 ReturnWidget = PopupWidget.extend({
template:'ReturnWidget',
init: function(parent, options){
this._super(parent, options);
this.options = {};
this.pos_reference = "";
},
show: function(options){
this._super(options);
this.render_list(options);
},
events: {
'click .button.cancel': 'click_cancel',
'click .button.confirm': 'click_confirm',
},
render_list:function(options){
$("#table-body").empty();
var lines = [];
this.pos_reference = options.ref
rpc.query({
model: 'pos.order',
method: 'get_lines',
args: [options.ref],
}).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: function(){
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.pos.db.get_product_by_id(row.cells[0].innerHTML);
if (!product) {
return;
}
if (return_qty > 0){
this.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.pos_reference,
label:row.cells[5].innerHTML},
});
}
c = c+1
}
if (this.options.client){
this.pos.get_order().set_client(self.pos.db.get_partner_by_id(this.options.client));
}
}
this.gui.close_popup();
self.gui.show_screen('products');
},
click_cancel: function(){
this.gui.close_popup();
}
});
gui.define_popup({name:'ReturnWidget', widget: ReturnWidget});
var OrderListScreenWidget = ScreenWidget.extend({
template:'OrderListScreenWidget',
init: function(parent, options){
this._super(parent, options);
},
show: function(){
var self = this;
this._super();
this.renderElement();
this.$('.back').click(function(){
self.gui.back();
});
var orders = this.pos.orders;
this.render_list(orders);
var search_timeout = null;
this.$('.searchbox input').on('keypress',function(event){
clearTimeout(search_timeout);
var searchbox = this;
search_timeout = setTimeout(function(){
self.perform_search(searchbox.value, event.which === 13);
},70);
});
this.$('.searchbox .search-clear').click(function(){
self.clear_search();
});
this.$('.return_order').click(function(e){
var order = $(e.target).closest("tr").data('id');
self.return_order(order);
});
},
hide: function () {
this._super();
},
get_orders: function(){
return this.gui.get_current_screen_param('orders');
},
perform_search: function(query, associate_result){
var orders;
if(query){
orders = this.search_order(query);
this.render_list(orders);
}else{
orders = this.pos.orders;
this.render_list(orders);
}
},
search_order: function(query){
try {
var re = RegExp(query, 'i');
}catch(e){
return [];
}
var results = [];
for (var order_id in this.pos.orders){
var r = re.exec(this.pos.orders[order_id]['name']+ '|'+ this.pos.orders[order_id]['partner_id'][1]);
if(r){
results.push(this.pos.orders[order_id]);
}
}
return results;
},
clear_search: function(){
var orders = this.pos.orders;
this.render_list(orders);
this.$('.searchbox input')[0].value = '';
this.$('.searchbox input').focus();
},
render_list: function(orders){
var contents = this.$el[0].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 = 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:function(order_id){
var self = this;
var order = this.get_order_by_id(order_id);
var client = ''
if (order.partner_id){
client = order.partner_id[0];
}
if (order && order.return_status ==='fully_return'){
self.gui.show_popup('error',_t('This is a fully returned order'));
}
else if (order && order.return_ref) {
self.gui.show_popup('error',_t('This is a returned order'));
}
else{
console.log(order.pos_reference,client)
self.gui.show_popup('ReturnWidget',{ref: order.pos_reference,client:client});
}
},
get_order_by_id: function(id){
var orders = this.pos.orders;
for (var i in orders){
if (orders[i].id === id){
return orders[i];
}
}
}
});
gui.define_screen({name:'orderlist', widget: OrderListScreenWidget});
var ReturnButton = screens.ActionButtonWidget.extend({
template: 'ReturnButton',
button_click: function(){
var orders = this.pos.orders;
this.gui.show_screen('orderlist',{orders:orders});
}
});
screens.define_action_button({
'name': 'return',
'widget': ReturnButton
});
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) {
self.gui.show_popup('error-traceback',{
'title': error.data.message,
'body': error.data.debug
});
}
self.set('failed',error);
}
console.error('Failed to send orders:', orders);
});
},
});
});

95
product_return_pos/static/src/xml/pos_return.xml

@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="ReturnButton">
<div class='control-button'>
<i class='fa fa-rotate-left' /> Return
</div>
</t>
<t t-name="OrderLine">
<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">Return</span></td>
</tr>
</t>
<t t-name="OrderListScreenWidget">
<div class="return-screen screen">
<div class="screen-content">
<section class="top-content">
<span class='button back'>
<i class='fa fa-angle-double-left'></i>
Cancel
</span>
<span class='searchbox'>
<input placeholder='Search' />
<span class='search-clear'></span>
</span>
<span class='searchbox'></span>
</section>
<section class="full-content">
<div class='window'>
<section class='subwindow'>
<div class='subwindow-container'>
<div class='subwindow-container-fix touch-scrollable scrollable-y'>
<table class='order-list'>
<thead>
<tr>
<th>Order Ref</th>
<th>Return Ref</th>
<th>Partner</th>
<th>Date</th>
</tr>
</thead>
<tbody class='order-list-contents'>
</tbody>
</table>
</div>
</div>
</section>
</div>
</section>
</div>
</div>
</t>
<t t-name="ReturnWidget">
<div class="modal-dialog" role="dialog">
<div class="popup popup-selection product_return_pos">
<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">
Return
</div>
<div class="button cancel">
Cancel
</div>
</div>
</div>
</div>
</t>
</templates>

13
product_return_pos/views/pos_template.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript"
src="/product_return_pos/static/src/js/pos_return.js"/>
<link rel="stylesheet" href="/product_return_pos/static/src/css/pos_return.css" />
</xpath>
</template>
</data>
</odoo>

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