diff --git a/sales_person_signature/README.rst b/sales_person_signature/README.rst new file mode 100644 index 000000000..01758c7f2 --- /dev/null +++ b/sales_person_signature/README.rst @@ -0,0 +1,43 @@ +Salesperson Signature +===================== +* Enables the option for adding the salesperson signature in sales, purchase and invoicing + +Installation +============ +- www.odoo.com/documentation/16.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 + V14 Muhammed Nafih + V15 Akshay ck @cybrosys + V16 Akhil Ashok @cybrosys + + +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..759011b8d --- /dev/null +++ b/sales_person_signature/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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..0a4f548ec --- /dev/null +++ b/sales_person_signature/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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': '16.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..7d0c444b8 --- /dev/null +++ b/sales_person_signature/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 06.01.2020 +#### Version 15.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..d6967318e --- /dev/null +++ b/sales_person_signature/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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..8673ba91b --- /dev/null +++ b/sales_person_signature/models/res_config_settings.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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..764681777 --- /dev/null +++ b/sales_person_signature/models/sale.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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/assets/icons/check.png b/sales_person_signature/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/check.png differ diff --git a/sales_person_signature/static/description/assets/icons/chevron.png b/sales_person_signature/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/chevron.png differ diff --git a/sales_person_signature/static/description/assets/icons/cogs.png b/sales_person_signature/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/cogs.png differ diff --git a/sales_person_signature/static/description/assets/icons/consultation.png b/sales_person_signature/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/consultation.png differ diff --git a/sales_person_signature/static/description/assets/icons/ecom-black.png b/sales_person_signature/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/ecom-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/education-black.png b/sales_person_signature/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/education-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/hotel-black.png b/sales_person_signature/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/hotel-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/license.png b/sales_person_signature/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/license.png differ diff --git a/sales_person_signature/static/description/assets/icons/lifebuoy.png b/sales_person_signature/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/lifebuoy.png differ diff --git a/sales_person_signature/static/description/assets/icons/logo.png b/sales_person_signature/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/logo.png differ diff --git a/sales_person_signature/static/description/assets/icons/manufacturing-black.png b/sales_person_signature/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/manufacturing-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/pos-black.png b/sales_person_signature/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/pos-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/puzzle.png b/sales_person_signature/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/puzzle.png differ diff --git a/sales_person_signature/static/description/assets/icons/restaurant-black.png b/sales_person_signature/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/restaurant-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/service-black.png b/sales_person_signature/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/service-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/trading-black.png b/sales_person_signature/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/trading-black.png differ diff --git a/sales_person_signature/static/description/assets/icons/training.png b/sales_person_signature/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/training.png differ diff --git a/sales_person_signature/static/description/assets/icons/update.png b/sales_person_signature/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/update.png differ diff --git a/sales_person_signature/static/description/assets/icons/user.png b/sales_person_signature/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/user.png differ diff --git a/sales_person_signature/static/description/assets/icons/wrench.png b/sales_person_signature/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/sales_person_signature/static/description/assets/icons/wrench.png differ diff --git a/sales_person_signature/static/description/assets/modules/1.png b/sales_person_signature/static/description/assets/modules/1.png new file mode 100644 index 000000000..7f8cf1ee1 Binary files /dev/null and b/sales_person_signature/static/description/assets/modules/1.png differ diff --git a/sales_person_signature/static/description/assets/modules/2.png b/sales_person_signature/static/description/assets/modules/2.png new file mode 100644 index 000000000..4be2248a4 Binary files /dev/null and b/sales_person_signature/static/description/assets/modules/2.png differ diff --git a/sales_person_signature/static/description/assets/modules/3.gif b/sales_person_signature/static/description/assets/modules/3.gif new file mode 100644 index 000000000..69bf230e7 Binary files /dev/null and b/sales_person_signature/static/description/assets/modules/3.gif differ diff --git a/sales_person_signature/static/description/assets/modules/4.png b/sales_person_signature/static/description/assets/modules/4.png new file mode 100644 index 000000000..3afc14722 Binary files /dev/null and b/sales_person_signature/static/description/assets/modules/4.png differ diff --git a/sales_person_signature/static/description/assets/modules/5.png b/sales_person_signature/static/description/assets/modules/5.png new file mode 100644 index 000000000..cea66b05f Binary files /dev/null and b/sales_person_signature/static/description/assets/modules/5.png differ diff --git a/sales_person_signature/static/description/assets/modules/6.png b/sales_person_signature/static/description/assets/modules/6.png new file mode 100644 index 000000000..0c9bb377e Binary files /dev/null and b/sales_person_signature/static/description/assets/modules/6.png differ diff --git a/sales_person_signature/static/description/assets/screenshots/hero.gif b/sales_person_signature/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..3b3275f8a Binary files /dev/null and b/sales_person_signature/static/description/assets/screenshots/hero.gif differ diff --git a/sales_person_signature/static/description/assets/screenshots/sales_person_signature-01.png b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-01.png new file mode 100644 index 000000000..47277537d Binary files /dev/null and b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-01.png differ diff --git a/sales_person_signature/static/description/assets/screenshots/sales_person_signature-02.png b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-02.png new file mode 100644 index 000000000..42f81fdb3 Binary files /dev/null and b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-02.png differ diff --git a/sales_person_signature/static/description/assets/screenshots/sales_person_signature-03.png b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-03.png new file mode 100644 index 000000000..baace2120 Binary files /dev/null and b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-03.png differ diff --git a/sales_person_signature/static/description/assets/screenshots/sales_person_signature-04.png b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-04.png new file mode 100644 index 000000000..2e3daa58b Binary files /dev/null and b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-04.png differ diff --git a/sales_person_signature/static/description/assets/screenshots/sales_person_signature-05.png b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-05.png new file mode 100644 index 000000000..53e5611cd Binary files /dev/null and b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-05.png differ diff --git a/sales_person_signature/static/description/assets/screenshots/sales_person_signature-06.png b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-06.png new file mode 100644 index 000000000..8731c5f98 Binary files /dev/null and b/sales_person_signature/static/description/assets/screenshots/sales_person_signature-06.png differ diff --git a/sales_person_signature/static/description/banner.png b/sales_person_signature/static/description/banner.png new file mode 100644 index 000000000..af96cc10a 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..e33f84984 Binary files /dev/null and b/sales_person_signature/static/description/icon.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..e47880f2e --- /dev/null +++ b/sales_person_signature/static/description/index.html @@ -0,0 +1,627 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Salesperson Signature

+

+ Add Salesperson's Signature in Sales Documents +

+ +
+
+ + + + +
+
+

+ 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.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ + Salesperson's signature in Sales documents

+

+ Add Salesperson's signature in Sales documents.

+
+
+ +
+
+ +
+
+

+ + Show/Hide Validate Option Based on Signature

+

+ Option for making the validate option visible/invisible of the corresponding documents based on + signature.

+
+
+ +
+
+ +
+
+

+ + Enable/Disable Validation Based on Signature

+

+ Validation based on signature can be enable/disable from the settings.

+
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ Add Salesperson's Signature in the Sale Document

+

+ Option for adding the salesperson's signature in the sale document. +

+ +
+
+

+ Draw Signature on the Pop-up Wizard Easily

+

+ Can easily draw the signature in the pop up wizard comes after click on the signature field.

+ +
+ +
+

+ Click "Adopt and Sign" to Save

+

+ After clicking the button "Adopt and Sign", the signature will be saved to the field.

+ +
+ +
+

+ Can Enable/Disable Documents Based on Salesperson's Signature

+

+ From Configuration->Settings->We can enable/disable the option for validating the documents based on + the salesperson's signature which is "Sale Document Approve".

+ +
+ +
+

+ Validate Option is Disabled Until a Signature is Added

+

+ After that the validate option for the document will be disabled until signature becomes filled.

+ +
+ +
+

+ Validate Option is Enabled Once a Signature is Added

+

+ After filling the signature, we can see that the validate button comes to visible.

+ +
+
+ + + +
+
+

Suggested Products

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

Our Services

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

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

Need Help?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ 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