diff --git a/customer_supplier_approval/README.rst b/customer_supplier_approval/README.rst new file mode 100644 index 000000000..3050f64fb --- /dev/null +++ b/customer_supplier_approval/README.rst @@ -0,0 +1,47 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Customer/Supplier Approval +========================== +* This module allows users to validate or approve customers/vendors + +Configuration +============= +* Add users to the three user groups + - Allow Validate Partner: can create and validate contacts + - Allow Approval Partner: can approve the validated contacts + - Administrator: can do both validation and approval of contacts + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +======= +GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) +(https://www.gnu.org/licenses/agpl.html) + +Credits +------- +* Developer: (V16) Ruksana P, Contact: odoo@cybrosys.com + +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 +========== +.. 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 https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/customer_supplier_approval/__init__.py b/customer_supplier_approval/__init__.py new file mode 100644 index 000000000..48ed07dfb --- /dev/null +++ b/customer_supplier_approval/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: odoo@cybrosys.com +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models diff --git a/customer_supplier_approval/__manifest__.py b/customer_supplier_approval/__manifest__.py new file mode 100644 index 000000000..5a518d722 --- /dev/null +++ b/customer_supplier_approval/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: odoo@cybrosys.com +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Customer/Supplier Approval', + 'version': '16.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """This module allows users to validate or approve contacts """, + 'description': """By this module, you can grant access to users to validate + or approve partners. Then you will be able to select only + approved partners on sales orders, purchase orders, + invoices, bills or delivery orders.""", + 'author': ' Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'contacts', 'stock', 'sale_management', 'account', + 'purchase', ], + 'data': [ + 'security/customer_supplier_approval_groups.xml', + 'security/ir.model.access.csv', + 'views/res_partner_views.xml', + 'views/account_move_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/customer_supplier_approval/doc/RELEASE_NOTES.md b/customer_supplier_approval/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..0e338184a --- /dev/null +++ b/customer_supplier_approval/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 29.07.2023 +#### Version 16.0.1.0.0 +##### ADD +- Initial Commit for Customer/Supplier Approval \ No newline at end of file diff --git a/customer_supplier_approval/models/__init__.py b/customer_supplier_approval/models/__init__.py new file mode 100644 index 000000000..8ff70ec17 --- /dev/null +++ b/customer_supplier_approval/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: odoo@cybrosys.com +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import purchase_order +from . import res_partner +from . import stock_picking +from . import sale_order diff --git a/customer_supplier_approval/models/purchase_order.py b/customer_supplier_approval/models/purchase_order.py new file mode 100644 index 000000000..904f9b00b --- /dev/null +++ b/customer_supplier_approval/models/purchase_order.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: odoo@cybrosys.com +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class PurchaseOrder(models.Model): + """Add domain value for field partner_id in purchase order model """ + _inherit = 'purchase.order' + + partner_id = fields.Many2one("res.partner", string='Vendor', + domain="[('state', '=', 'approved')]", + help="We can see the approved partner here") diff --git a/customer_supplier_approval/models/res_partner.py b/customer_supplier_approval/models/res_partner.py new file mode 100644 index 000000000..aec51caed --- /dev/null +++ b/customer_supplier_approval/models/res_partner.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: odoo@cybrosys.com +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models, _ +from odoo.exceptions import ValidationError + + +class ResPartner(models.Model): + """ This class inherited to add some extra fields and functions in the + Partner """ + _inherit = 'res.partner' + + customer_supplier = fields.Char(string="Customer Supplier Id", + domain="[('state', '=', 'validated')]", + help="Unique id for partners") + hide_button = fields.Boolean(default=False, string='Hide Approve Button', + help="TChecking the box enables to hide the " + "approve button") + hide_button_validate = fields.Boolean(default=False, + string='Hide Validate Button', + help="This boolean field is used to " + "hide the Validate button") + state = fields.Selection([('draft', 'Draft'), ('validated', 'Validated'), + ('approved', 'Approved')], default='draft', + string='Status', + help="The status of contacts") + _sql_constraints = [ + ('id_uniq', 'unique (customer_supplier)', 'The partner id unique !') + ] + + def action_validate(self): + """ Method of button validate to validate customer or supplier """ + for rec in self: + rec.hide_button_validate = True + rec.write({'state': 'validated'}) + + def action_approve(self): + """ Method of button approve to approve customer or supplier """ + for rec in self: + rec.hide_button = True + rec.write({'state': 'approved'}) + + def write(self, values): + """ To raise validation error when validator changes the state""" + if 'state' in values: + new_state = values.get('state') + if new_state == 'approved' or self.state == 'approved': + if not self.env.user.has_group( + 'customer_supplier_approval.' + 'customer_supplier_approval_group_approval'): + raise ValidationError( + _("Only Manager can perform that move!")) + if new_state == 'validated' or self.state == 'draft': + if not self.env.user.has_group( + 'customer_supplier_approval.' + 'customer_supplier_approval_group_validation'): + raise ValidationError( + _("Only Managers can perform that move!")) + return super().write(values) diff --git a/customer_supplier_approval/models/sale_order.py b/customer_supplier_approval/models/sale_order.py new file mode 100644 index 000000000..f93ef00be --- /dev/null +++ b/customer_supplier_approval/models/sale_order.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: odoo@cybrosys.com +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class SaleOrder(models.Model): + """ Add domain value for inherited fields """ + _inherit = 'sale.order' + + partner_id = fields.Many2one("res.partner", string='Customer', + domain="[('state', '=', 'approved')]", + help="We can see the approved partner here") diff --git a/customer_supplier_approval/models/stock_picking.py b/customer_supplier_approval/models/stock_picking.py new file mode 100644 index 000000000..66a2717a4 --- /dev/null +++ b/customer_supplier_approval/models/stock_picking.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: odoo@cybrosys.com +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class StockPicking(models.Model): + """ Add domain value for inherited fields """ + _inherit = 'stock.picking' + + partner_id = fields.Many2one("res.partner", string='Receive From', + domain="[('state', '=', 'approved')]", + help="We can see the approved partner here") diff --git a/customer_supplier_approval/security/customer_supplier_approval_groups.xml b/customer_supplier_approval/security/customer_supplier_approval_groups.xml new file mode 100644 index 000000000..32e89c049 --- /dev/null +++ b/customer_supplier_approval/security/customer_supplier_approval_groups.xml @@ -0,0 +1,33 @@ + + + + + Partner Approval and Validation + User access level for validating and + approving + + 10 + + + + Allow Validate Partner + + + + + + Allow Approve Partner + + + + + + Administrator + + + + + diff --git a/customer_supplier_approval/security/ir.model.access.csv b/customer_supplier_approval/security/ir.model.access.csv new file mode 100644 index 000000000..255c69879 --- /dev/null +++ b/customer_supplier_approval/security/ir.model.access.csv @@ -0,0 +1,4 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_res_partner_validation,access.res.partner.validation,model_res_partner,customer_supplier_approval.customer_supplier_approval_group_validation,1,1,1,1 +access_res_partner_approval,access.res.partner.approval,model_res_partner,customer_supplier_approval.customer_supplier_approval_group_approval,1,1,1,1 +access_res_partner_admin,access.res.partner.admin,model_res_partner,customer_supplier_approval.customer_supplier_approval_group_admin,1,1,1,1 diff --git a/customer_supplier_approval/static/description/assets/icons/check.png b/customer_supplier_approval/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/check.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/chevron.png b/customer_supplier_approval/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/chevron.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/cogs.png b/customer_supplier_approval/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/cogs.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/consultation.png b/customer_supplier_approval/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/consultation.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/ecom-black.png b/customer_supplier_approval/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/ecom-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/education-black.png b/customer_supplier_approval/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/education-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/hotel-black.png b/customer_supplier_approval/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/hotel-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/license.png b/customer_supplier_approval/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/license.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/lifebuoy.png b/customer_supplier_approval/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/lifebuoy.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/logo.png b/customer_supplier_approval/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/logo.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/manufacturing-black.png b/customer_supplier_approval/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/manufacturing-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/pos-black.png b/customer_supplier_approval/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/pos-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/puzzle.png b/customer_supplier_approval/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/puzzle.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/restaurant-black.png b/customer_supplier_approval/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/restaurant-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/service-black.png b/customer_supplier_approval/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/service-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/trading-black.png b/customer_supplier_approval/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/trading-black.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/training.png b/customer_supplier_approval/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/training.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/update.png b/customer_supplier_approval/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/update.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/user.png b/customer_supplier_approval/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/user.png differ diff --git a/customer_supplier_approval/static/description/assets/icons/wrench.png b/customer_supplier_approval/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/customer_supplier_approval/static/description/assets/icons/wrench.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/categories.png b/customer_supplier_approval/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/categories.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/check-box.png b/customer_supplier_approval/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/check-box.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/compass.png b/customer_supplier_approval/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/compass.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/corporate.png b/customer_supplier_approval/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/corporate.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/customer-support.png b/customer_supplier_approval/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/customer-support.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/cybrosys-logo.png b/customer_supplier_approval/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/cybrosys-logo.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/features.png b/customer_supplier_approval/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/features.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/logo.png b/customer_supplier_approval/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/logo.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/pictures.png b/customer_supplier_approval/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/pictures.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/pie-chart.png b/customer_supplier_approval/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/pie-chart.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/right-arrow.png b/customer_supplier_approval/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/right-arrow.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/star.png b/customer_supplier_approval/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/star.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/support.png b/customer_supplier_approval/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/support.png differ diff --git a/customer_supplier_approval/static/description/assets/misc/whatsapp.png b/customer_supplier_approval/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/misc/whatsapp.png differ diff --git a/customer_supplier_approval/static/description/assets/modules/1.png b/customer_supplier_approval/static/description/assets/modules/1.png new file mode 100644 index 000000000..0f9162ee8 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/modules/1.png differ diff --git a/customer_supplier_approval/static/description/assets/modules/2.png b/customer_supplier_approval/static/description/assets/modules/2.png new file mode 100644 index 000000000..05f58a9b2 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/modules/2.png differ diff --git a/customer_supplier_approval/static/description/assets/modules/3.png b/customer_supplier_approval/static/description/assets/modules/3.png new file mode 100644 index 000000000..33372bdc1 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/modules/3.png differ diff --git a/customer_supplier_approval/static/description/assets/modules/4.png b/customer_supplier_approval/static/description/assets/modules/4.png new file mode 100644 index 000000000..f15663e28 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/modules/4.png differ diff --git a/customer_supplier_approval/static/description/assets/modules/5.png b/customer_supplier_approval/static/description/assets/modules/5.png new file mode 100644 index 000000000..51555e88c Binary files /dev/null and b/customer_supplier_approval/static/description/assets/modules/5.png differ diff --git a/customer_supplier_approval/static/description/assets/modules/6.png b/customer_supplier_approval/static/description/assets/modules/6.png new file mode 100644 index 000000000..e790c45ac Binary files /dev/null and b/customer_supplier_approval/static/description/assets/modules/6.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/1.png b/customer_supplier_approval/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..367099b83 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/1.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/10.png b/customer_supplier_approval/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..4bd050c83 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/10.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/12.png b/customer_supplier_approval/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..fea71ddbf Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/12.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/2.png b/customer_supplier_approval/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..0de83b9b8 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/2.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/3.png b/customer_supplier_approval/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..466e95815 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/3.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/4.png b/customer_supplier_approval/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..d0190c444 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/4.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/5.png b/customer_supplier_approval/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..3e49d6978 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/5.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/6.png b/customer_supplier_approval/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..5799883dd Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/6.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/7.png b/customer_supplier_approval/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..5927803cd Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/7.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/8.png b/customer_supplier_approval/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..777097e48 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/8.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/9.png b/customer_supplier_approval/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..fd19cda71 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/9.png differ diff --git a/customer_supplier_approval/static/description/assets/screenshots/hero.gif b/customer_supplier_approval/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..d75725008 Binary files /dev/null and b/customer_supplier_approval/static/description/assets/screenshots/hero.gif differ diff --git a/customer_supplier_approval/static/description/banner.png b/customer_supplier_approval/static/description/banner.png new file mode 100644 index 000000000..e4c70ded0 Binary files /dev/null and b/customer_supplier_approval/static/description/banner.png differ diff --git a/customer_supplier_approval/static/description/icon.png b/customer_supplier_approval/static/description/icon.png new file mode 100644 index 000000000..c58370121 Binary files /dev/null and b/customer_supplier_approval/static/description/icon.png differ diff --git a/customer_supplier_approval/static/description/index.html b/customer_supplier_approval/static/description/index.html new file mode 100644 index 000000000..c9409d388 --- /dev/null +++ b/customer_supplier_approval/static/description/index.html @@ -0,0 +1,690 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Customer/Supplier Approval

+

+ Allows Users to validate or approve customers/vendors +

+ +
+
+
+
+ +
+
+ +
+

+ Explore This Module +

+
+ + + +
+
+ +
+

+ Overview +

+
+
+
+ In this module, you can give access for users to validate + and approve when creating a new customer Only approved customers will be + listed on sale orders, purchase orders, delivery orders, customer + invoices, etc. When choosing the partner dropdown menu. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Available in Odoo 16.0 + Community and Enterprise. +
+
+ + Easily can set approval or validation of + Customer/Supplier accesses user-wise. +
+
+ + User can select only approved Customer/Supplier. + +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Validate button access for user +

+

+ Go to Settings > Users there you can see under Access Right + tab you can enable 'Allow Validate Partner' under + Approval and Validation category

+ +
+
+

+ Add VALIDATE button and statusbar in the customer form view +

+

+ Click on 'VALIDATE' button user can validate the customer ,then + the state will change from draft to validate.

+ +
+
+

+ Approve button access for user

+

+ Go to Settings > Users there you can see under Access Right tab + you can enable 'Allow Approve Partner' under + Approval and Validation category

+ +
+
+

+ Add APPROVE button in customer form view

+

+ Click on 'APPROVE' button user can approve the customer ,then + the state will change from validate to approve.User + can also generate id for customer +

+ +
+
+

+ Administrator access

+

+ Go to Settings > Users there you can see under Access Right + tab you can enable 'Administrator' under Approval and + Validation category . Administrator has both validation + and approve access.

+ +
+
+
+

+ Filter Kanban Customer

+

+ You can filter the state quickly from kanban customer. +

+ +
+
+

+ Group by Kanban Customer

+

+ You can group by the state quickly from kanban customer. +

+ +
+
+

+ Sale order form view

+

+ when creating a sale order only approved customers will be + listed in the customer dropdown +

+ +
+
+

+ Purchase order form view

+

+ when creating a purchase order only approved vendors will be + listed in the vendor dropdown +

+ +
+
+

+ Customer invoice form view

+

+ when creating a customer invoice only approved customers + will be listed in the customer dropdown +

+ +
+
+

+ Inventory form view

+

+ when creating a delivery order only approved partners will + be listed in the partner dropdown +

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

+ Related Products +

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

+ Our Services +

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

+ Our Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure and sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy configuration and convivial experience +

+
+
+
+
+ +
+ Education +
+

+ A platform for educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and schedule your operations

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

+ Mobile friendly, awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of services and invoice +

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

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

+ An all-inclusive hotel management application +

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need + help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on + WhatsApp!

+ +

+ +91 8606827707 +

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/customer_supplier_approval/views/account_move_views.xml b/customer_supplier_approval/views/account_move_views.xml new file mode 100644 index 000000000..910e4be45 --- /dev/null +++ b/customer_supplier_approval/views/account_move_views.xml @@ -0,0 +1,19 @@ + + + + + + account.move.view.form.inherit.customer.supplier.approval + + account.move + + + + [('type', '!=', 'private'), + ('company_id', 'in', (False, company_id)),('state', '=', + 'approved')] + + + + + diff --git a/customer_supplier_approval/views/res_partner_views.xml b/customer_supplier_approval/views/res_partner_views.xml new file mode 100644 index 000000000..0e7851651 --- /dev/null +++ b/customer_supplier_approval/views/res_partner_views.xml @@ -0,0 +1,68 @@ + + + + + + res.partner.view.form.inherit.customer.supplier.approval + + res.partner + + + +
+
+
+ + + + + +
+
+ + + res.partner.view.kanban.inherit.customer.supplier.approval + + res.partner + + + + + + + + + + + + res.partner.view.search.inherit.customer.supplier.approval + + res.partner + + + + + + + + + +