diff --git a/import_partner_employee_image/README.md b/import_partner_employee_image/README.md new file mode 100644 index 000000000..6e060aa97 --- /dev/null +++ b/import_partner_employee_image/README.md @@ -0,0 +1,31 @@ +Import Employee/Partner Image +============================= + +Installation +============ +- www.odoo.com/documentation/13.0/setup/install.html +- Install our custom addon + +License +======= +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Credits +======= +* Cybrosys Techno Solutions + + +Developer: Ijaz Ahammed - odoo@cybrosys.com + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. + diff --git a/import_partner_employee_image/__init__.py b/import_partner_employee_image/__init__.py new file mode 100644 index 000000000..d2edfe6c7 --- /dev/null +++ b/import_partner_employee_image/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Ijaz () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import models diff --git a/import_partner_employee_image/__manifest__.py b/import_partner_employee_image/__manifest__.py new file mode 100644 index 000000000..145436bd9 --- /dev/null +++ b/import_partner_employee_image/__manifest__.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Ijaz () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +{ + 'name': "Import Employee/Partner Image", + 'version': '13.0.1.0.0', + 'category': 'Human Resources', + 'summary': """Import Partner/Employee Image From Url and Local storage using CSV and XLSX Files""", + 'description': """Import Partner/Employee Image From Url and Local storage using CSV and XLSX Files""", + 'author': "Cybrosys Techno Solutions", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['hr', 'contacts'], + 'data': ['views/import_employee_image.xml', + 'views/import_partner_image.xml', + ], + 'license': 'AGPL-3', + 'images': ['static/description/banner.png'], + 'application': False, + 'installable': True, + 'auto_install': False, +} diff --git a/import_partner_employee_image/doc/RELEASE_NOTES.md b/import_partner_employee_image/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..e0f102867 --- /dev/null +++ b/import_partner_employee_image/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 04.01.2020 +#### Version 13.0.1.0.0 +#### ADD +Initial Commit diff --git a/import_partner_employee_image/models/__init__.py b/import_partner_employee_image/models/__init__.py new file mode 100644 index 000000000..85bbb4eba --- /dev/null +++ b/import_partner_employee_image/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Ijaz () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import import_employee_image +from . import import_partner_image diff --git a/import_partner_employee_image/models/import_employee_image.py b/import_partner_employee_image/models/import_employee_image.py new file mode 100644 index 000000000..4b534404a --- /dev/null +++ b/import_partner_employee_image/models/import_employee_image.py @@ -0,0 +1,133 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Ijaz () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +import binascii +import tempfile + +import certifi +import urllib3 +import base64 +import csv +import io +import xlrd + +from odoo import models, fields, api, _ +from odoo.exceptions import Warning, UserError + + +class EmployeeImageImportWizard(models.TransientModel): + _name = 'import.employee_image' + + file = fields.Binary('File to import', required=True) + file_type = fields.Selection([('csv', 'CSV'), ('xls', 'XLS')], string="File Type", default='csv') + + def import_file(self): + if self.file_type == 'csv': + + keys = ['emp_id', 'emp_image'] + + try: + file = base64.b64decode(self.file) + data = io.StringIO(file.decode("utf-8")) + data.seek(0) + file_reader = [] + csv_reader = csv.reader(data, delimiter=',') + file_reader.extend(csv_reader) + + except: + + raise Warning(_("File is not Valid!")) + + for fr in range(len(file_reader)): + line = list(map(str, file_reader[fr])) + vals = dict(zip(keys, line)) + if vals: + if fr == 0: + continue + else: + vals.update({ + 'emp_id': line[0], + 'employee_image': line[1], + }) + res = self.import_employee_image(vals) + + elif self.file_type == 'xls': + try: + fp = tempfile.NamedTemporaryFile(delete=False, suffix=".xlsx") + fp.write(binascii.a2b_base64(self.file)) + fp.seek(0) + vals = {} + workbook = xlrd.open_workbook(fp.name) + sheet = workbook.sheet_by_index(0) + + except: + raise Warning(_("File not Valid")) + + for row_no in range(sheet.nrows): + val = {} + if row_no <= 0: + fields = map(lambda row: row.value.encode('utf-8'), sheet.row(row_no)) + else: + + line = list( + map(lambda row: isinstance(row.value, bytes) and row.value.encode('utf-8') or str(row.value), + sheet.row(row_no))) + + vals.update({ + 'emp_id': line[0], + 'emp_image': line[1], + }) + + self.import_employee_image(vals) + else: + raise UserError(_("Please select xls or csv format!")) + + def import_employee_image(self, vals): + if vals.get('emp_id') == "": + raise UserError(_("ID Field is Empty.")) + if vals.get('emp_image') == "": + raise UserError(_("Image Field is Empty.")) + print('vals.get', vals.get('emp_id')) + + http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', + ca_certs=certifi.where()) + id = str(vals.get("emp_id")) + emp_id = id.rstrip('0').rstrip('.') if '.' in id else id + + if "http://" in vals.get('emp_image') or "https://" in vals.get('emp_image'): + print('yesss') + link = vals.get('emp_image') + image_response = http.request('GET', link) + image_thumbnail = base64.b64encode(image_response.data) + image = image_thumbnail + print('image', image_thumbnail) + else: + with open(vals.get('emp_image'), 'rb') as f: + data = base64.b64encode(f.read()) + image = data + + employee_id = self.env['hr.employee'].search([('id', '=', emp_id)], limit=1) + print('partner_id', employee_id.name) + if employee_id: + employee_id.update({ + 'image_1920': image, + }) diff --git a/import_partner_employee_image/models/import_partner_image.py b/import_partner_employee_image/models/import_partner_image.py new file mode 100644 index 000000000..46a86019f --- /dev/null +++ b/import_partner_employee_image/models/import_partner_image.py @@ -0,0 +1,143 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Ijaz () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +import binascii +import tempfile + +import certifi +import urllib3 +import base64 +import csv +import io +import xlrd + +from odoo import models, fields, api, _ +from odoo.exceptions import Warning, UserError + + +class PartnerImageImportWizard(models.TransientModel): + _name = 'import.partner_image' + + file = fields.Binary('File to import', required=True) + file_type = fields.Selection([('csv', 'CSV'), ('xls', 'XLS')], string="File Type", default='csv') + + def import_file(self): + if self.file_type == 'csv': + + keys = ['partner_id', 'partner_image'] + + try: + file = base64.b64decode(self.file) + data = io.StringIO(file.decode("utf-8")) + data.seek(0) + file_reader = [] + csv_reader = csv.reader(data, delimiter=',') + file_reader.extend(csv_reader) + + except: + + raise Warning(_("File is not Valid!")) + + for fr in range(len(file_reader)): + line = list(map(str, file_reader[fr])) + vals = dict(zip(keys, line)) + if vals: + if fr == 0: + continue + else: + vals.update({ + 'partner_id': line[0], + 'partner_image': line[1], + }) + self.import_partner_image(vals) + + elif self.file_type == 'xls': + try: + fp = tempfile.NamedTemporaryFile(delete=False, suffix=".xlsx") + fp.write(binascii.a2b_base64(self.file)) + fp.seek(0) + vals = {} + workbook = xlrd.open_workbook(fp.name) + sheet = workbook.sheet_by_index(0) + + except: + raise Warning(_("File not Valid")) + + for row_no in range(sheet.nrows): + val = {} + if row_no <= 0: + fields = map(lambda row: row.value.encode('utf-8'), sheet.row(row_no)) + else: + + line = list( + map(lambda row: isinstance(row.value, bytes) and row.value.encode('utf-8') or str(row.value), + sheet.row(row_no))) + + vals.update({ + 'partner_id': line[0], + 'partner_image': line[1], + }) + + self.import_partner_image(vals) + else: + raise UserError(_("Please select xls or csv format!")) + + + def import_partner_image(self, vals): + if vals.get('partner_id') == "": + raise UserError(_("ID Field is Empty.")) + if vals.get('partner_image') == "": + raise UserError(_("Image Field is Empty.")) + print('vals.get',vals.get('partner_id')) + + http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', + ca_certs=certifi.where()) + id = str(vals.get("partner_id")) + p_id = id.rstrip('0').rstrip('.') if '.' in id else id + + + if "http://" in vals.get('partner_image') or "https://" in vals.get('partner_image'): + try: + print('yesss') + link = vals.get('partner_image') + image_response = http.request('GET', link) + image_thumbnail = base64.b64encode(image_response.data) + image = image_thumbnail + print('image', image_thumbnail) + except: + raise UserError('The Link Is Not valid') + else: + try: + with open(vals.get('partner_image'), 'rb') as f: + data = base64.b64encode(f.read()) + image = data + except: + + raise UserError('The Link Is Not Valid') + + partner_id = self.env['res.partner'].search([('id', '=', p_id)], limit=1) + print('employee_id', partner_id.name) + + partner_id.update({ + 'image_1920': image, + }) + diff --git a/import_partner_employee_image/sample_csv_snd_xlsx_file/.~lock.import_employee_partner_image_sample_xlsx.xlsx# b/import_partner_employee_image/sample_csv_snd_xlsx_file/.~lock.import_employee_partner_image_sample_xlsx.xlsx# new file mode 100644 index 000000000..863692bb5 --- /dev/null +++ b/import_partner_employee_image/sample_csv_snd_xlsx_file/.~lock.import_employee_partner_image_sample_xlsx.xlsx# @@ -0,0 +1 @@ +,cybrosys,cybrosys,06.01.2020 13:01,file:///home/cybrosys/.config/libreoffice/4; \ No newline at end of file diff --git a/import_partner_employee_image/sample_csv_snd_xlsx_file/import_employee_partner_image_sample_csv.csv b/import_partner_employee_image/sample_csv_snd_xlsx_file/import_employee_partner_image_sample_csv.csv new file mode 100644 index 000000000..e2802e4b7 --- /dev/null +++ b/import_partner_employee_image/sample_csv_snd_xlsx_file/import_employee_partner_image_sample_csv.csv @@ -0,0 +1,3 @@ +Employee/Partner Record ID,Image Link +13,https://www.cybrosys.com/images/cybro-logo-oca.png +14,/home/ijaz/Documents/71t-J3VJtEL._SX466_.jpg diff --git a/import_partner_employee_image/sample_csv_snd_xlsx_file/import_employee_partner_image_sample_xlsx.xlsx b/import_partner_employee_image/sample_csv_snd_xlsx_file/import_employee_partner_image_sample_xlsx.xlsx new file mode 100644 index 000000000..04446e223 Binary files /dev/null and b/import_partner_employee_image/sample_csv_snd_xlsx_file/import_employee_partner_image_sample_xlsx.xlsx differ diff --git a/import_partner_employee_image/static/description/banner.png b/import_partner_employee_image/static/description/banner.png new file mode 100644 index 000000000..12ee6d9a9 Binary files /dev/null and b/import_partner_employee_image/static/description/banner.png differ diff --git a/import_partner_employee_image/static/description/icon.png b/import_partner_employee_image/static/description/icon.png new file mode 100644 index 000000000..776a26c7f Binary files /dev/null and b/import_partner_employee_image/static/description/icon.png differ diff --git a/import_partner_employee_image/static/description/images/1.jpeg b/import_partner_employee_image/static/description/images/1.jpeg new file mode 100644 index 000000000..ccb8e1556 Binary files /dev/null and b/import_partner_employee_image/static/description/images/1.jpeg differ diff --git a/import_partner_employee_image/static/description/images/2.jpeg b/import_partner_employee_image/static/description/images/2.jpeg new file mode 100644 index 000000000..2625f7727 Binary files /dev/null and b/import_partner_employee_image/static/description/images/2.jpeg differ diff --git a/import_partner_employee_image/static/description/images/3.jpeg b/import_partner_employee_image/static/description/images/3.jpeg new file mode 100644 index 000000000..5dfdf2c2b Binary files /dev/null and b/import_partner_employee_image/static/description/images/3.jpeg differ diff --git a/import_partner_employee_image/static/description/images/4.jpeg b/import_partner_employee_image/static/description/images/4.jpeg new file mode 100644 index 000000000..ec8264c0b Binary files /dev/null and b/import_partner_employee_image/static/description/images/4.jpeg differ diff --git a/import_partner_employee_image/static/description/images/5.jpeg b/import_partner_employee_image/static/description/images/5.jpeg new file mode 100644 index 000000000..e10c28799 Binary files /dev/null and b/import_partner_employee_image/static/description/images/5.jpeg differ diff --git a/import_partner_employee_image/static/description/images/6.jpeg b/import_partner_employee_image/static/description/images/6.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/import_partner_employee_image/static/description/images/6.jpeg differ diff --git a/import_partner_employee_image/static/description/images/checked.png b/import_partner_employee_image/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/import_partner_employee_image/static/description/images/checked.png differ diff --git a/import_partner_employee_image/static/description/images/cybrosys.png b/import_partner_employee_image/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/import_partner_employee_image/static/description/images/cybrosys.png differ diff --git a/import_partner_employee_image/static/description/images/enable.png b/import_partner_employee_image/static/description/images/enable.png new file mode 100644 index 000000000..c38dc2d38 Binary files /dev/null and b/import_partner_employee_image/static/description/images/enable.png differ diff --git a/import_partner_employee_image/static/description/images/import_employee_partner_image_1.png b/import_partner_employee_image/static/description/images/import_employee_partner_image_1.png new file mode 100644 index 000000000..c7f04f5b3 Binary files /dev/null and b/import_partner_employee_image/static/description/images/import_employee_partner_image_1.png differ diff --git a/import_partner_employee_image/static/description/images/import_employee_partner_image_2.png b/import_partner_employee_image/static/description/images/import_employee_partner_image_2.png new file mode 100644 index 000000000..d2424f946 Binary files /dev/null and b/import_partner_employee_image/static/description/images/import_employee_partner_image_2.png differ diff --git a/import_partner_employee_image/static/description/images/import_employee_partner_image_3.png b/import_partner_employee_image/static/description/images/import_employee_partner_image_3.png new file mode 100644 index 000000000..5c55140c1 Binary files /dev/null and b/import_partner_employee_image/static/description/images/import_employee_partner_image_3.png differ diff --git a/import_partner_employee_image/static/description/images/import_employee_partner_image_4.png b/import_partner_employee_image/static/description/images/import_employee_partner_image_4.png new file mode 100644 index 000000000..176ab99f9 Binary files /dev/null and b/import_partner_employee_image/static/description/images/import_employee_partner_image_4.png differ diff --git a/import_partner_employee_image/static/description/index.html b/import_partner_employee_image/static/description/index.html new file mode 100644 index 000000000..0baed00b1 --- /dev/null +++ b/import_partner_employee_image/static/description/index.html @@ -0,0 +1,320 @@ +
cybrosys-logo
+
+
+
+

Import Employee and Partner Image From Url and Local

+
+

Key Highlights

+
    +
  • checkManage the Importing of Employee and Partner Image Easily
  • +
+
+
+
+
+
+
+
+ +
+
+ +

Overview

+
+

+ This module allows the odoo users to Import Employee and Partner image easily . +

+
+
+ +

Import Employee and Partner Image

+
+
    +
  • + checkEasy Importing Of Employee and Partner Image. +
  • +
+
    +
  • + checkImage From Url and Local Storage. +
  • +
+
    +
  • + checkIt Supports XlSX and CSV Files. +
  • +
+ +
+ +
+
+

Screenshots

+
+
+
+ +
+
+
+
+
+ +

Video

+
+
+

Import Employee and Partner Image From Url and Local

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

Suggested Products

+
+ +
+
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

Service Management

+

Keep track of services and invoice accordingly.

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

Need Any Help?

+
+

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

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + +
+
+
+ \ No newline at end of file diff --git a/import_partner_employee_image/views/import_employee_image.xml b/import_partner_employee_image/views/import_employee_image.xml new file mode 100644 index 000000000..68993eca1 --- /dev/null +++ b/import_partner_employee_image/views/import_employee_image.xml @@ -0,0 +1,52 @@ + + + + + + hr.employee.view.form.inherit + hr.employee + + + + + + + + + + + + employee.import.image.form + import.employee_image + form + +
+ + + + + + +
+
+
+
+
+ + + Import employee Image + ir.actions.act_window + import.employee_image + form + new + + + + + +
+
diff --git a/import_partner_employee_image/views/import_partner_image.xml b/import_partner_employee_image/views/import_partner_image.xml new file mode 100644 index 000000000..3d631c40e --- /dev/null +++ b/import_partner_employee_image/views/import_partner_image.xml @@ -0,0 +1,47 @@ + + + + partner.view.form.inherit + res.partner + + + + + + + + + + + partner.import.image.form + import.partner_image + form + +
+ + + + + + +
+
+
+
+
+ + + Import Partner Image + ir.actions.act_window + import.partner_image + form + new + + + +
+
\ No newline at end of file diff --git a/pos_restrict/README.rst b/pos_restrict/README.rst new file mode 100644 index 000000000..16b076de8 --- /dev/null +++ b/pos_restrict/README.rst @@ -0,0 +1,17 @@ +POS User Restrict v13 +===================== +Restricts User access to pos and orders + +Installation +============ + - www.odoo.com/documentation/13.0/setup/install.html + - Install our custom addon + +Configuration +============= + + No additional configurations needed + +Credits +======= + Developer: Risha C.T @ cybrosys, odoo@cybrosys.com diff --git a/pos_restrict/__init__.py b/pos_restrict/__init__.py new file mode 100644 index 000000000..e6d6019cf --- /dev/null +++ b/pos_restrict/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import models \ No newline at end of file diff --git a/pos_restrict/__manifest__.py b/pos_restrict/__manifest__.py new file mode 100644 index 000000000..711976e38 --- /dev/null +++ b/pos_restrict/__manifest__.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +{ + 'name': 'POS User Restrict', + 'summary': """Restricts User access to pos and orders""", + 'version': '13.0.1.0.0', + 'description': """Restricts User access to pos and orders""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://cybrosys.com', + 'category': 'Tools', + 'depends': ['point_of_sale'], + 'license': 'AGPL-3', + 'data': [ + 'security/security.xml', + 'views/res_users_inherit.xml' + ], + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, +} diff --git a/pos_restrict/doc/RELEASE_NOTES.md b/pos_restrict/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..7ad43de10 --- /dev/null +++ b/pos_restrict/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 04.01.2020 +#### Version 13.0.1.0.0 +##### ADD +- Initial commit for POS User Restrict diff --git a/pos_restrict/models/__init__.py b/pos_restrict/models/__init__.py new file mode 100644 index 000000000..24cab5c93 --- /dev/null +++ b/pos_restrict/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import res_users_inherit \ No newline at end of file diff --git a/pos_restrict/models/res_users_inherit.py b/pos_restrict/models/res_users_inherit.py new file mode 100644 index 000000000..dc71c4c97 --- /dev/null +++ b/pos_restrict/models/res_users_inherit.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from odoo import api, fields, models + + +class ResUsers(models.Model): + _inherit = 'res.users' + + allowed_pos = fields.Many2many('pos.config', string='Allowed Pos', + help='Allowed Pos for this user') + show_users = fields.Boolean(string="Show users of pos", default=True, help='Show users in dashboard ( for pos administrators only)') + + @api.model + def create(self, vals): + self.clear_caches() + return super(ResUsers, self).create(vals) + + def write(self, vals): + # for clearing out existing values and update with new values + self.clear_caches() + return super(ResUsers, self).write(vals) + + +class PosConfig(models.Model): + _inherit = 'pos.config' + + users_allowed = fields.Many2many('res.users', compute='get_allowed_users') + + def get_allowed_users(self): + # computes the allowed users in pos + for this in self: + # checks is show_users is ticked in user settings + if this.env.user.show_users: + this.users_allowed = self.env['res.users'].search([('allowed_pos', '=', this.id)]) + else: + this.users_allowed = None diff --git a/pos_restrict/security/security.xml b/pos_restrict/security/security.xml new file mode 100644 index 000000000..ac09f8031 --- /dev/null +++ b/pos_restrict/security/security.xml @@ -0,0 +1,29 @@ + + + + Config User + + [('id','in',user.allowed_pos.ids)] + + + + + Config Manager + + [] + + + + Orders User + + [('config_id','in',user.allowed_pos.ids)] + + + + + Orders Manager + + [] + + + \ No newline at end of file diff --git a/pos_restrict/static/description/banner.png b/pos_restrict/static/description/banner.png new file mode 100644 index 000000000..d95c15ca3 Binary files /dev/null and b/pos_restrict/static/description/banner.png differ diff --git a/pos_restrict/static/description/icon.png b/pos_restrict/static/description/icon.png new file mode 100644 index 000000000..22efd7a17 Binary files /dev/null and b/pos_restrict/static/description/icon.png differ diff --git a/pos_restrict/static/description/images/banner_barcode_scanning.jpeg b/pos_restrict/static/description/images/banner_barcode_scanning.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/pos_restrict/static/description/images/banner_barcode_scanning.jpeg differ diff --git a/pos_restrict/static/description/images/banner_currency_total.png b/pos_restrict/static/description/images/banner_currency_total.png new file mode 100644 index 000000000..6153ed719 Binary files /dev/null and b/pos_restrict/static/description/images/banner_currency_total.png differ diff --git a/pos_restrict/static/description/images/banner_customer_sequence.jpeg b/pos_restrict/static/description/images/banner_customer_sequence.jpeg new file mode 100644 index 000000000..7451342d6 Binary files /dev/null and b/pos_restrict/static/description/images/banner_customer_sequence.jpeg differ diff --git a/pos_restrict/static/description/images/banner_previous_rates.jpeg b/pos_restrict/static/description/images/banner_previous_rates.jpeg new file mode 100644 index 000000000..e10c28799 Binary files /dev/null and b/pos_restrict/static/description/images/banner_previous_rates.jpeg differ diff --git a/pos_restrict/static/description/images/banner_product_branding.png b/pos_restrict/static/description/images/banner_product_branding.png new file mode 100644 index 000000000..aa12beabb Binary files /dev/null and b/pos_restrict/static/description/images/banner_product_branding.png differ diff --git a/pos_restrict/static/description/images/banner_product_expiry.jpeg b/pos_restrict/static/description/images/banner_product_expiry.jpeg new file mode 100644 index 000000000..84a872d44 Binary files /dev/null and b/pos_restrict/static/description/images/banner_product_expiry.jpeg differ diff --git a/pos_restrict/static/description/images/checked.png b/pos_restrict/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/pos_restrict/static/description/images/checked.png differ diff --git a/pos_restrict/static/description/images/pos_restrict_1.png b/pos_restrict/static/description/images/pos_restrict_1.png new file mode 100644 index 000000000..06818713d Binary files /dev/null and b/pos_restrict/static/description/images/pos_restrict_1.png differ diff --git a/pos_restrict/static/description/images/pos_restrict_2.png b/pos_restrict/static/description/images/pos_restrict_2.png new file mode 100644 index 000000000..9c63eba4b Binary files /dev/null and b/pos_restrict/static/description/images/pos_restrict_2.png differ diff --git a/pos_restrict/static/description/images/pos_restrict_3.png b/pos_restrict/static/description/images/pos_restrict_3.png new file mode 100644 index 000000000..77572321a Binary files /dev/null and b/pos_restrict/static/description/images/pos_restrict_3.png differ diff --git a/pos_restrict/static/description/images/pos_restrict_4.png b/pos_restrict/static/description/images/pos_restrict_4.png new file mode 100644 index 000000000..cf09136f2 Binary files /dev/null and b/pos_restrict/static/description/images/pos_restrict_4.png differ diff --git a/pos_restrict/static/description/images/pos_restrict_5.png b/pos_restrict/static/description/images/pos_restrict_5.png new file mode 100644 index 000000000..a61ffb513 Binary files /dev/null and b/pos_restrict/static/description/images/pos_restrict_5.png differ diff --git a/pos_restrict/static/description/images/pos_restrict_6.png b/pos_restrict/static/description/images/pos_restrict_6.png new file mode 100644 index 000000000..f59b1ad37 Binary files /dev/null and b/pos_restrict/static/description/images/pos_restrict_6.png differ diff --git a/pos_restrict/static/description/index.html b/pos_restrict/static/description/index.html new file mode 100644 index 000000000..c35422991 --- /dev/null +++ b/pos_restrict/static/description/index.html @@ -0,0 +1,540 @@ +
+ cybrosys-logo
+
+
+
+

POS User Restrict

+

Restricts available POS for Users.

+
+

Key Highlights

+
    +
  • check + Restricts user access to default POS. +
  • +
  • check + POS Manager can access every POS. +
  • +
  • check + POS Manager can see user assigned to each POS. +
  • +
+
+
+
+
+
+
+
+ +
+
+ +

Overview

+
+

+ This application allows you to set allowed POS for each user in the user + settings form. When the user logs in, he can have access to the allowed + POS only. Manager can see the users assigned to each POS and also can + view POS of all users. + + +

+
+
+ +

Restricting Users

+
+
    +
  • + checkSet + Set point of sale user or manager. +
  • +
  • + checkSet + Set allowed POS for each user. +
  • +
  • + checkPos + POS admin can see all POS and the users assigned to each POS. +
  • +
+
+ +
+
+

Screenshots

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

Suggested Products

+
+ +
+
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+
+ Odoo Industry
+
+
+

+ + Trading

+

+ Easily procure and sell your products.

+
+
+
+
+
+ Odoo Industry +
+
+
+

+ + Manufacturing

+

+ Plan, track and schedule your operations.

+
+
+
+
+
+ + Odoo Industry
+
+
+

+ + Restaurant

+

+ Run your bar or restaurant methodical.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + POS

+

+ Easy configuring and convivial selling.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + E-commerce & Website

+

+ Mobile friendly, awe-inspiring product pages.

+
+
+
+
+
+ + Odoo Industry
+
+
+

+ + Hotel Management

+

+ An all-inclusive hotel management application.

+
+
+
+
+
+ + Odoo Industry
+
+
+

+ + Education

+

+ A Collaborative platform for educational management.

+
+
+
+
+
+ Odoo Industry
+
+
+

+ + Service Management

+

+ Keep track of services and invoice accordingly.

+
+
+
+
+
+ +
+
+
+

Need Any Help?

+
+

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

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + +
+
+
+ \ No newline at end of file diff --git a/pos_restrict/views/res_users_inherit.xml b/pos_restrict/views/res_users_inherit.xml new file mode 100644 index 000000000..ca74581b1 --- /dev/null +++ b/pos_restrict/views/res_users_inherit.xml @@ -0,0 +1,31 @@ + + + + res.users.form.view + res.users + + + + + + + + + + + + + + pos.config.restrict.kanban.view + pos.config + + + + + + + + + + + diff --git a/sales_person_signature/README.rst b/sales_person_signature/README.rst new file mode 100644 index 000000000..4ac203c6b --- /dev/null +++ b/sales_person_signature/README.rst @@ -0,0 +1,40 @@ +Salesperson Signature +===================== +* Enables the option for adding the salesperson signature in sales, purchase and invoicing + +Installation +============ +- www.odoo.com/documentation/13.0/setup/install.html +- Install our custom addon + +License +------- +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: + Sayooj A O + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/sales_person_signature/__init__.py b/sales_person_signature/__init__.py new file mode 100644 index 000000000..2ac9ce16c --- /dev/null +++ b/sales_person_signature/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models diff --git a/sales_person_signature/__manifest__.py b/sales_person_signature/__manifest__.py new file mode 100644 index 000000000..326d8e63b --- /dev/null +++ b/sales_person_signature/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': "Salesperson Signature", + 'version': '13.0.1.0.0', + 'summary': """In this module allows the salesperson to add his signature and also + available the option for making the validate option in sales + visible/invisible based on the salesperson signature""", + 'description': """In this module allows the salesperson to add his signature and also + available the option for making the validate option in sales + visible/invisible based on the salesperson signature""", + 'category': 'Sales', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'sale_management'], + 'data': [ + 'views/sale_signature.xml', + 'views/res_config_settings_inherited.xml', + ], + 'license': "AGPL-3", + 'images': ['static/description/banner.png'], + 'installable': True, + 'application': True, +} diff --git a/sales_person_signature/doc/RELEASE_NOTES.md b/sales_person_signature/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..582920f70 --- /dev/null +++ b/sales_person_signature/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.01.2020 +#### Version 13.0.1.0.0 +##### ADD +- Initial commit diff --git a/sales_person_signature/models/__init__.py b/sales_person_signature/models/__init__.py new file mode 100644 index 000000000..195e66c31 --- /dev/null +++ b/sales_person_signature/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import sale +from . import res_config_settings diff --git a/sales_person_signature/models/res_config_settings.py b/sales_person_signature/models/res_config_settings.py new file mode 100644 index 000000000..3cd9b5f7f --- /dev/null +++ b/sales_person_signature/models/res_config_settings.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = 'res.config.settings' + + sale_document_approve = fields.Boolean(config_parameter='sale.sale_document_approve') \ No newline at end of file diff --git a/sales_person_signature/models/sale.py b/sales_person_signature/models/sale.py new file mode 100644 index 000000000..6d0008a8b --- /dev/null +++ b/sales_person_signature/models/sale.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Sayooj A O() +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import models, fields, api + + +class SaleOrderLine(models.Model): + """In this class we are inheriting the model sale.order and adding + a new field for signature""" + + _inherit = 'sale.order' + + sale_person_signature = fields.Binary(string='Signature', help="Field for adding the signature of the sales person") + check_signature = fields.Boolean(compute='_compute_check_signature') + + @api.depends('sale_person_signature') + def _compute_check_signature(self): + """In this function computes the value of the boolean field check signature + which is used to hide/unhide the validate button in the current document""" + if self.env['ir.config_parameter'].sudo().get_param('sale.sale_document_approve'): + if self.sale_person_signature: + self.check_signature = True + else: + self.check_signature = False + else: + self.check_signature = True diff --git a/sales_person_signature/static/description/banner.png b/sales_person_signature/static/description/banner.png new file mode 100644 index 000000000..170d067c6 Binary files /dev/null and b/sales_person_signature/static/description/banner.png differ diff --git a/sales_person_signature/static/description/icon.png b/sales_person_signature/static/description/icon.png new file mode 100644 index 000000000..5f6149594 Binary files /dev/null and b/sales_person_signature/static/description/icon.png differ diff --git a/sales_person_signature/static/description/images/banner_barcode_scanning.jpeg b/sales_person_signature/static/description/images/banner_barcode_scanning.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/sales_person_signature/static/description/images/banner_barcode_scanning.jpeg differ diff --git a/sales_person_signature/static/description/images/banner_currency_total.png b/sales_person_signature/static/description/images/banner_currency_total.png new file mode 100644 index 000000000..6153ed719 Binary files /dev/null and b/sales_person_signature/static/description/images/banner_currency_total.png differ diff --git a/sales_person_signature/static/description/images/banner_customer_sequence.jpeg b/sales_person_signature/static/description/images/banner_customer_sequence.jpeg new file mode 100644 index 000000000..7451342d6 Binary files /dev/null and b/sales_person_signature/static/description/images/banner_customer_sequence.jpeg differ diff --git a/sales_person_signature/static/description/images/banner_previous_rates.jpeg b/sales_person_signature/static/description/images/banner_previous_rates.jpeg new file mode 100644 index 000000000..e10c28799 Binary files /dev/null and b/sales_person_signature/static/description/images/banner_previous_rates.jpeg differ diff --git a/sales_person_signature/static/description/images/banner_product_branding.png b/sales_person_signature/static/description/images/banner_product_branding.png new file mode 100644 index 000000000..aa12beabb Binary files /dev/null and b/sales_person_signature/static/description/images/banner_product_branding.png differ diff --git a/sales_person_signature/static/description/images/banner_product_expiry.jpeg b/sales_person_signature/static/description/images/banner_product_expiry.jpeg new file mode 100644 index 000000000..84a872d44 Binary files /dev/null and b/sales_person_signature/static/description/images/banner_product_expiry.jpeg differ diff --git a/sales_person_signature/static/description/images/checked.png b/sales_person_signature/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/sales_person_signature/static/description/images/checked.png differ diff --git a/sales_person_signature/static/description/images/cybrosys.png b/sales_person_signature/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/sales_person_signature/static/description/images/cybrosys.png differ diff --git a/sales_person_signature/static/description/images/sale_person_signature_gif.png b/sales_person_signature/static/description/images/sale_person_signature_gif.png new file mode 100644 index 000000000..e1894a9c8 Binary files /dev/null and b/sales_person_signature/static/description/images/sale_person_signature_gif.png differ diff --git a/sales_person_signature/static/description/images/sales_person_signature-01.png b/sales_person_signature/static/description/images/sales_person_signature-01.png new file mode 100644 index 000000000..47277537d Binary files /dev/null and b/sales_person_signature/static/description/images/sales_person_signature-01.png differ diff --git a/sales_person_signature/static/description/images/sales_person_signature-02.png b/sales_person_signature/static/description/images/sales_person_signature-02.png new file mode 100644 index 000000000..42f81fdb3 Binary files /dev/null and b/sales_person_signature/static/description/images/sales_person_signature-02.png differ diff --git a/sales_person_signature/static/description/images/sales_person_signature-03.png b/sales_person_signature/static/description/images/sales_person_signature-03.png new file mode 100644 index 000000000..baace2120 Binary files /dev/null and b/sales_person_signature/static/description/images/sales_person_signature-03.png differ diff --git a/sales_person_signature/static/description/images/sales_person_signature-04.png b/sales_person_signature/static/description/images/sales_person_signature-04.png new file mode 100644 index 000000000..2e3daa58b Binary files /dev/null and b/sales_person_signature/static/description/images/sales_person_signature-04.png differ diff --git a/sales_person_signature/static/description/images/sales_person_signature-05.png b/sales_person_signature/static/description/images/sales_person_signature-05.png new file mode 100644 index 000000000..53e5611cd Binary files /dev/null and b/sales_person_signature/static/description/images/sales_person_signature-05.png differ diff --git a/sales_person_signature/static/description/images/sales_person_signature-06.png b/sales_person_signature/static/description/images/sales_person_signature-06.png new file mode 100644 index 000000000..8731c5f98 Binary files /dev/null and b/sales_person_signature/static/description/images/sales_person_signature-06.png differ diff --git a/sales_person_signature/static/description/index.html b/sales_person_signature/static/description/index.html new file mode 100644 index 000000000..62730d45a --- /dev/null +++ b/sales_person_signature/static/description/index.html @@ -0,0 +1,317 @@ +
cybrosys-logo
+
+
+
+

Salesperson Signature

+

Add salesperson's signature in Sales documents.

+
+

Key Highlights

+
    +
  • checkAdd salesperson's signature in Sales document.
  • +
  • checkEnables option to keep visible/invisible the validation of the corresponding documents based on signature.
  • +
  • checkValidation based on signature can be enabled/disabled from the settings.
  • +
+
+
+
+
+
+
+
+ +
+
+ +

Overview

+
+

+ The module allows the salesperson's to add his signature and also available the option for making the validate option in sales visible/invisible based on the salesperson's signature +

+
+
+ +

Partner Custom Fields

+
+
    +
  • + checkAdd salesperson's signature in Sales documents. +
  • +
  • + checkOption for making the validate option visible/invisible of the corresponding documents based on signature. +
  • +
  • + checkValidation based on signature can be enable/disable from the settings. +
  • +
+
+ +
+
+

Screenshots

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

Suggested Products

+
+ +
+
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

Service Management

+

Keep track of services and invoice accordingly.

+
+
+
+
+
+ +
+
+
+

Need Any Help?

+
+

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

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + +
+
+
+ \ No newline at end of file diff --git a/sales_person_signature/views/res_config_settings_inherited.xml b/sales_person_signature/views/res_config_settings_inherited.xml new file mode 100644 index 000000000..041fbf8d2 --- /dev/null +++ b/sales_person_signature/views/res_config_settings_inherited.xml @@ -0,0 +1,27 @@ + + + + res.config.settings.view.form.inherit.sale.approval + res.config.settings + + + + +

Sale Approval

+
+
+
+ +
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/sales_person_signature/views/sale_signature.xml b/sales_person_signature/views/sale_signature.xml new file mode 100644 index 000000000..fb9febf25 --- /dev/null +++ b/sales_person_signature/views/sale_signature.xml @@ -0,0 +1,22 @@ + + + + view.sale.order.signature.inherited + sale.order + + + + + + + + {'invisible': ['|',('state', 'not in', ['sent']),('check_signature','=',False)]} + + + + {'invisible':['|',('state', 'not in', ['draft']),('check_signature','=',False)]} + + + + + \ No newline at end of file