diff --git a/odoo_contact_approval/README.rst b/odoo_contact_approval/README.rst new file mode 100644 index 000000000..16d491fb2 --- /dev/null +++ b/odoo_contact_approval/README.rst @@ -0,0 +1,40 @@ +Odoo Contact Approval +===================== +* Odoo Contact Approval module for Odoo 15. + +Installation +============ + - www.odoo.com/documentation/15.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions '__ + +Credits +------- +* Developer: Gion D @cybrosys + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +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/odoo_contact_approval/__init__.py b/odoo_contact_approval/__init__.py new file mode 100644 index 000000000..b604a293c --- /dev/null +++ b/odoo_contact_approval/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models diff --git a/odoo_contact_approval/__manifest__.py b/odoo_contact_approval/__manifest__.py new file mode 100644 index 000000000..5ab6f1d56 --- /dev/null +++ b/odoo_contact_approval/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': "Odoo Contact Approval", + 'version': '15.0.1.0.0', + 'summary': """This module helps you manage contacts through the Approval manager's validation process.""", + "category": "Sales/Sales", + 'description': """The Odoo Contact Approval Module allows you to approve or cancel contacts through the Contacts + Approval Manager. Only Approved contacts can be used in sales, purchasing, inventory, and invoice models.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'contacts', 'sale_management', 'purchase', 'stock', 'account'], + 'data': [ + 'security/contact_approval_security.xml', + 'views/res_partner_views.xml', + 'views/sale_order_views.xml', + 'views/purchase_order_views.xml', + 'views/stock_picking_views.xml', + 'views/account_move_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': "LGPL-3", + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/odoo_contact_approval/doc/RELEASE_NOTES.md b/odoo_contact_approval/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..5752c1a3b --- /dev/null +++ b/odoo_contact_approval/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 14.04.2023 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for Odoo Contact Approval \ No newline at end of file diff --git a/odoo_contact_approval/models/__init__.py b/odoo_contact_approval/models/__init__.py new file mode 100644 index 000000000..56365a1db --- /dev/null +++ b/odoo_contact_approval/models/__init__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import res_partner +from . import sale_order +from . import purchase_order +from . import stock_picking diff --git a/odoo_contact_approval/models/purchase_order.py b/odoo_contact_approval/models/purchase_order.py new file mode 100644 index 000000000..533f36654 --- /dev/null +++ b/odoo_contact_approval/models/purchase_order.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import fields, models + + +class PurchaseOrder(models.Model): + _inherit = 'purchase.order' + + READONLY_STATES = { + 'purchase': [('readonly', True)], + 'done': [('readonly', True)], + 'cancel': [('readonly', True)], + } + + partner_id = fields.Many2one('res.partner', string='Vendor', required=True, + states=READONLY_STATES, change_default=True, + tracking=True, + domain="['|', ('company_id', '=', False), ('company_id', '=', company_id), ('state', '=', 'approve')]", + help="You can find a vendor by its Name, TIN, Email or Internal Reference.") diff --git a/odoo_contact_approval/models/res_partner.py b/odoo_contact_approval/models/res_partner.py new file mode 100644 index 000000000..bdcb0e83b --- /dev/null +++ b/odoo_contact_approval/models/res_partner.py @@ -0,0 +1,77 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import fields, models, _ +from odoo.exceptions import UserError + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + state = fields.Selection([('draft', 'Draft'), ('approve', 'Approved'), + ("cancel", "Cancelled")], default='draft', help='Status of the contact', + tracking=True) + + approver_id = fields.Many2one( + 'res.users', string="Approved By", readonly=True, help='Person responsible for validating the contacts.') + + def action_approve_contact(self): + """Manager validating the contacts.""" + if self.env.user.has_group( + 'odoo_contact_approval.group_contacts_approval'): + self.write({ + 'state': "approve", + 'approver_id': self.env.uid + }) + else: + raise UserError(_( + "You do not have the access right to Contacts Approval." + " Please contact your administrator.") + ) + + def action_cancel_contact(self): + """Manager cancelling the contacts.""" + if self.env.user.has_group( + 'odoo_contact_approval.group_contacts_approval'): + self.write({ + 'state': "cancel", + 'approver_id': None + }) + else: + raise UserError(_( + "You do not have the access right to Contacts Approval." + " Please contact your administrator.") + ) + + def action_reset_contact(self): + """Manager resetting the contacts.""" + if self.env.user.has_group( + 'odoo_contact_approval.group_contacts_approval'): + self.write({ + 'state': "draft", + 'approver_id': None + }) + else: + raise UserError(_( + "You do not have the access right to Contacts Approval." + " Please contact your administrator.") + ) diff --git a/odoo_contact_approval/models/sale_order.py b/odoo_contact_approval/models/sale_order.py new file mode 100644 index 000000000..253265936 --- /dev/null +++ b/odoo_contact_approval/models/sale_order.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import fields, models + + +class SaleOrder(models.Model): + _inherit = 'sale.order' + + partner_id = fields.Many2one( + 'res.partner', string='Customer', readonly=True, + states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, + required=True, change_default=True, index=True, tracking=1, + domain="[('type', '!=', 'private'), ('company_id', 'in', (False, company_id)), ('state', '=', 'approve')]") diff --git a/odoo_contact_approval/models/stock_picking.py b/odoo_contact_approval/models/stock_picking.py new file mode 100644 index 000000000..7ffa0d82b --- /dev/null +++ b/odoo_contact_approval/models/stock_picking.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import fields, models + + +class StockPicking(models.Model): + _inherit = 'stock.picking' + + partner_id = fields.Many2one( + 'res.partner', 'Contact', + check_company=True, domain="[('state', '=', 'approve')]", + states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}) diff --git a/odoo_contact_approval/security/contact_approval_security.xml b/odoo_contact_approval/security/contact_approval_security.xml new file mode 100644 index 000000000..62c005bd2 --- /dev/null +++ b/odoo_contact_approval/security/contact_approval_security.xml @@ -0,0 +1,7 @@ + + + + Contacts Approval Manager + + + diff --git a/odoo_contact_approval/static/description/assets/icons/check.png b/odoo_contact_approval/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/check.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/chevron.png b/odoo_contact_approval/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/chevron.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/cogs.png b/odoo_contact_approval/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/cogs.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/consultation.png b/odoo_contact_approval/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/consultation.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/ecom-black.png b/odoo_contact_approval/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/ecom-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/education-black.png b/odoo_contact_approval/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/education-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/hotel-black.png b/odoo_contact_approval/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/hotel-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/license.png b/odoo_contact_approval/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/license.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/lifebuoy.png b/odoo_contact_approval/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/lifebuoy.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/logo.png b/odoo_contact_approval/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/logo.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/manufacturing-black.png b/odoo_contact_approval/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/manufacturing-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/pos-black.png b/odoo_contact_approval/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/pos-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/puzzle.png b/odoo_contact_approval/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/puzzle.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/restaurant-black.png b/odoo_contact_approval/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/restaurant-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/service-black.png b/odoo_contact_approval/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/service-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/trading-black.png b/odoo_contact_approval/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/trading-black.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/training.png b/odoo_contact_approval/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/training.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/update.png b/odoo_contact_approval/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/update.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/user.png b/odoo_contact_approval/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/user.png differ diff --git a/odoo_contact_approval/static/description/assets/icons/wrench.png b/odoo_contact_approval/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/odoo_contact_approval/static/description/assets/icons/wrench.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/approval_image.png b/odoo_contact_approval/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/approval_image.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/budget_image.png b/odoo_contact_approval/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/budget_image.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/export_image.png b/odoo_contact_approval/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/export_image.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/gantt_view.png b/odoo_contact_approval/static/description/assets/modules/gantt_view.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/gantt_view.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/invoice_multi_approval.png b/odoo_contact_approval/static/description/assets/modules/invoice_multi_approval.png new file mode 100644 index 000000000..b19bf9df7 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/invoice_multi_approval.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/magento_image.png b/odoo_contact_approval/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/magento_image.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/multi_pdt.png b/odoo_contact_approval/static/description/assets/modules/multi_pdt.png new file mode 100644 index 000000000..7a29a348e Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/multi_pdt.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/payment_approval.png b/odoo_contact_approval/static/description/assets/modules/payment_approval.png new file mode 100644 index 000000000..f3038d908 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/payment_approval.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/po_confirm.png b/odoo_contact_approval/static/description/assets/modules/po_confirm.png new file mode 100644 index 000000000..4aaf7e99a Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/po_confirm.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/pos_image.png b/odoo_contact_approval/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/pos_image.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/shopify_image.png b/odoo_contact_approval/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/shopify_image.png differ diff --git a/odoo_contact_approval/static/description/assets/modules/so_delivary_status.png b/odoo_contact_approval/static/description/assets/modules/so_delivary_status.png new file mode 100644 index 000000000..94c023fe1 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/modules/so_delivary_status.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/hero.gif b/odoo_contact_approval/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..24261f2c8 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/hero.gif differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_1.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_1.png new file mode 100644 index 000000000..0ba1aadcc Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_1.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_2.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_2.png new file mode 100644 index 000000000..3a38cabfe Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_2.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_3.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_3.png new file mode 100644 index 000000000..a7e183098 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_3.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_4.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_4.png new file mode 100644 index 000000000..69b76b734 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_4.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_5.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_5.png new file mode 100644 index 000000000..6ba81d0b9 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_5.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_6.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_6.png new file mode 100644 index 000000000..a3438f4be Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_6.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_7.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_7.png new file mode 100644 index 000000000..fbd3d0ec5 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_7.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_8.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_8.png new file mode 100644 index 000000000..2bfd1b149 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_8.png differ diff --git a/odoo_contact_approval/static/description/assets/screenshots/rpa_9.png b/odoo_contact_approval/static/description/assets/screenshots/rpa_9.png new file mode 100644 index 000000000..038982489 Binary files /dev/null and b/odoo_contact_approval/static/description/assets/screenshots/rpa_9.png differ diff --git a/odoo_contact_approval/static/description/banner.png b/odoo_contact_approval/static/description/banner.png new file mode 100644 index 000000000..e704e7971 Binary files /dev/null and b/odoo_contact_approval/static/description/banner.png differ diff --git a/odoo_contact_approval/static/description/icon.png b/odoo_contact_approval/static/description/icon.png new file mode 100644 index 000000000..f6b7deeb6 Binary files /dev/null and b/odoo_contact_approval/static/description/icon.png differ diff --git a/odoo_contact_approval/static/description/index.html b/odoo_contact_approval/static/description/index.html new file mode 100644 index 000000000..7fd2323b5 --- /dev/null +++ b/odoo_contact_approval/static/description/index.html @@ -0,0 +1,741 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Odoo Contact Approval

+

+ This module helps you manage contacts through the Approval manager's validation process. +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ The Odoo Contact Approval Module allows you to approve or cancel contacts through the Contacts Approval Manager. Only Approved contacts can be used in sales, purchasing, inventory, and invoice models.

+ +
+
+ +
+
+

+ Configuration +

+
+ +
+
+ +
+
+

+ Install it and use it without additional configuration.

+ +
+
+
+ + + + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Approval Access

+

+ Only authorized user can accept contacts.

+
+
+ +
+
+ +
+
+

+ Mass Update

+

+ Multiple contacts can be approved or cancelled with just one click.

+
+
+ +
+
+ +
+
+

+ Access contacts

+

+ Users can only use authorized contacts in Sales, Purchase, Inventory and Invoice.

+
+
+ + + +
+
+ +
+
+

+ Filteration

+

+ Filter contacts related to a status.

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

+ Enable the Contacts Approval Manager in the user Settings.

+

+ +

+ +
+ +
+

+ Approve or Cancel contact partners.

+

+ +

+ +
+ +
+

+ Users can only use the approved contact in Sale, Purchase, Inventory and Invoice models. + +

+

+ +

+ +
+ +
+

+ Filter the products related to a contacts state. +

+

+ +

+ +
+ +
+

+ Multiple contacts can be approved or cancelled with just one click. +

+

+ +

+ + + +
+ +
+

+ User will get only contact approved by contact manager.

+

+ +

+ + + + +
+ +
+

+ Sale Order

+

+ +

+ +
+ + +
+

+ Purchase Order

+

+ +

+ +
+ +
+

+ Delivery Order

+

+ +

+ +
+
+

+ Customer Invoice

+

+ +

+ +
+ +
+ + +
+
+

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/odoo_contact_approval/views/account_move_views.xml b/odoo_contact_approval/views/account_move_views.xml new file mode 100644 index 000000000..2bcae68d5 --- /dev/null +++ b/odoo_contact_approval/views/account_move_views.xml @@ -0,0 +1,16 @@ + + + + + account.move.view.form.inherit.approval + account.move + + + + {'no_create_edit': True, 'no_create': True} + [('type', '!=', 'private'), ('company_id', 'in', (False, company_id)),('state', '=', 'approve')] + + + + + diff --git a/odoo_contact_approval/views/purchase_order_views.xml b/odoo_contact_approval/views/purchase_order_views.xml new file mode 100644 index 000000000..82900c390 --- /dev/null +++ b/odoo_contact_approval/views/purchase_order_views.xml @@ -0,0 +1,15 @@ + + + + + purchase.order.view.form.inherit.approval + purchase.order + + + + {'no_create_edit': True, 'no_create': True} + + + + + diff --git a/odoo_contact_approval/views/res_partner_views.xml b/odoo_contact_approval/views/res_partner_views.xml new file mode 100644 index 000000000..7e094cea2 --- /dev/null +++ b/odoo_contact_approval/views/res_partner_views.xml @@ -0,0 +1,59 @@ + + + + + res.partner.view.form.inherit.approval + res.partner + + + +
+
+
+ + + +
+
+ + + Approve + + + list,form + code + + if records: + action = records.action_approve_contact() + + + + + Cancel + + + list,form + code + + if records: + action = records.action_cancel_contact() + + + + + res.partner.view.search.inherit.approval + res.partner + + + + + + + + +
diff --git a/odoo_contact_approval/views/sale_order_views.xml b/odoo_contact_approval/views/sale_order_views.xml new file mode 100644 index 000000000..a95ac7cd7 --- /dev/null +++ b/odoo_contact_approval/views/sale_order_views.xml @@ -0,0 +1,15 @@ + + + + + sale.order.view.form.inherit.approval + sale.order + + + + {'no_create_edit': True, 'no_create': True} + + + + + diff --git a/odoo_contact_approval/views/stock_picking_views.xml b/odoo_contact_approval/views/stock_picking_views.xml new file mode 100644 index 000000000..abeff01c3 --- /dev/null +++ b/odoo_contact_approval/views/stock_picking_views.xml @@ -0,0 +1,15 @@ + + + + + stock.picking.view.form.inherit.approval + stock.picking + + + + {'no_create_edit': True, 'no_create': True} + + + + +