diff --git a/customer_sequence/README.rst b/customer_sequence/README.rst new file mode 100644 index 000000000..90a4a2560 --- /dev/null +++ b/customer_sequence/README.rst @@ -0,0 +1,41 @@ +Customer Sequence +================= + +This module will give a unique code to each customer and supplier. + +Configuration +============= +* You should configure the company form for the proper working of this module. +* The customer and supplier code start from the number you give in the company form + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Vinaya @ Cybrosys, odoo@cybrosys.com + Mohammed Shahil M P @cybrosys, odoo@cybrosys.com + V14 Minhaj T @cybrosys, odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/customer_sequence/__init__.py b/customer_sequence/__init__.py new file mode 100644 index 000000000..7199aa346 --- /dev/null +++ b/customer_sequence/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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_sequence/__manifest__.py b/customer_sequence/__manifest__.py new file mode 100644 index 000000000..379aca0b4 --- /dev/null +++ b/customer_sequence/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# 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 Sequence", + 'version': '14.0.1.0.0', + 'summary': """Unique Customer Code""", + 'description': """ + Each customer have unique number code, Odoo 13, Odoo + """, + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://cybrosys.com/", + 'category': 'Sales', + 'depends': ['sale_management'], + 'data': [ + 'views/res_partner_fom.xml', + 'views/res_company.xml', + 'security/ir.model.access.csv', + ], + 'demo': [], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'application': False +} diff --git a/customer_sequence/doc/RELEASE_NOTES.md b/customer_sequence/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..f8935a294 --- /dev/null +++ b/customer_sequence/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 05.10.2020 +#### Version 14.0.1.0.0 +#### ADD +Initial Commit diff --git a/customer_sequence/models/__init__.py b/customer_sequence/models/__init__.py new file mode 100644 index 000000000..15fce675b --- /dev/null +++ b/customer_sequence/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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 res_company +from . import res_partner diff --git a/customer_sequence/models/res_company.py b/customer_sequence/models/res_company.py new file mode 100644 index 000000000..131ba9312 --- /dev/null +++ b/customer_sequence/models/res_company.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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 models, fields + + +class CompanySequence(models.Model): + _inherit = 'res.company' + + customer_code = fields.Integer(string='Customer code', required=True) + next_code = fields.Integer(string='Next code') diff --git a/customer_sequence/models/res_partner.py b/customer_sequence/models/res_partner.py new file mode 100644 index 000000000..69b24f338 --- /dev/null +++ b/customer_sequence/models/res_partner.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Vinaya @ Cybrosys, (odoo@cybrosys.com) +# Mohammed Shahil M P @ Cybrosys, (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 models, fields, api + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + unique_id = fields.Char(string='Unique Id', help="The Unique Sequence no", readonly=True, default='/') + + @api.model + def create(self, values): + res = super(ResPartner, self).create(values) + company_seq = self.env.company + if res.customer_rank > 0 and res.unique_id == '/': + if company_seq.next_code: + res.unique_id = company_seq.next_code + res.name = '[' + str(company_seq.next_code) + ']' + str(res.name) + company_seq.write({'next_code': company_seq.next_code + 1}) + else: + res.unique_id = company_seq.customer_code + res.name = '[' + str(company_seq.customer_code) + ']' + str(res.name) + company_seq.write({'next_code': company_seq.customer_code + 1}) + return res diff --git a/customer_sequence/security/ir.model.access.csv b/customer_sequence/security/ir.model.access.csv new file mode 100644 index 000000000..259c9de31 --- /dev/null +++ b/customer_sequence/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink + +access_res_company,access_res_company,model_res_company,base.group_user,1,1,1,0 diff --git a/customer_sequence/static/description/banner.png b/customer_sequence/static/description/banner.png new file mode 100644 index 000000000..1c11c338e Binary files /dev/null and b/customer_sequence/static/description/banner.png differ diff --git a/customer_sequence/static/description/cybro_logo.png b/customer_sequence/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/customer_sequence/static/description/cybro_logo.png differ diff --git a/customer_sequence/static/description/icon.png b/customer_sequence/static/description/icon.png new file mode 100644 index 000000000..ae50b9fba Binary files /dev/null and b/customer_sequence/static/description/icon.png differ diff --git a/customer_sequence/static/description/images/banner_lifeline_for_task.jpeg b/customer_sequence/static/description/images/banner_lifeline_for_task.jpeg new file mode 100644 index 000000000..4a467ea22 Binary files /dev/null and b/customer_sequence/static/description/images/banner_lifeline_for_task.jpeg differ diff --git a/customer_sequence/static/description/images/banner_project_report_xls_pdf.png b/customer_sequence/static/description/images/banner_project_report_xls_pdf.png new file mode 100644 index 000000000..3c430a7eb Binary files /dev/null and b/customer_sequence/static/description/images/banner_project_report_xls_pdf.png differ diff --git a/customer_sequence/static/description/images/banner_project_status_report.png b/customer_sequence/static/description/images/banner_project_status_report.png new file mode 100644 index 000000000..d1b689710 Binary files /dev/null and b/customer_sequence/static/description/images/banner_project_status_report.png differ diff --git a/customer_sequence/static/description/images/banner_subtask.jpeg b/customer_sequence/static/description/images/banner_subtask.jpeg new file mode 100644 index 000000000..f2b224110 Binary files /dev/null and b/customer_sequence/static/description/images/banner_subtask.jpeg differ diff --git a/customer_sequence/static/description/images/banner_task_deadline_reminder.jpeg b/customer_sequence/static/description/images/banner_task_deadline_reminder.jpeg new file mode 100644 index 000000000..998679818 Binary files /dev/null and b/customer_sequence/static/description/images/banner_task_deadline_reminder.jpeg differ diff --git a/customer_sequence/static/description/images/banner_task_statusbar.jpeg b/customer_sequence/static/description/images/banner_task_statusbar.jpeg new file mode 100644 index 000000000..2c57cbb7b Binary files /dev/null and b/customer_sequence/static/description/images/banner_task_statusbar.jpeg differ diff --git a/customer_sequence/static/description/images/checked.png b/customer_sequence/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/customer_sequence/static/description/images/checked.png differ diff --git a/customer_sequence/static/description/images/customer sequence1.png b/customer_sequence/static/description/images/customer sequence1.png new file mode 100644 index 000000000..e143632bc Binary files /dev/null and b/customer_sequence/static/description/images/customer sequence1.png differ diff --git a/customer_sequence/static/description/images/customer sequence2.png b/customer_sequence/static/description/images/customer sequence2.png new file mode 100644 index 000000000..4b0f76c58 Binary files /dev/null and b/customer_sequence/static/description/images/customer sequence2.png differ diff --git a/customer_sequence/static/description/images/customer.png b/customer_sequence/static/description/images/customer.png new file mode 100644 index 000000000..3a63df45e Binary files /dev/null and b/customer_sequence/static/description/images/customer.png differ diff --git a/customer_sequence/static/description/images/cybrosys.png b/customer_sequence/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/customer_sequence/static/description/images/cybrosys.png differ diff --git a/customer_sequence/static/description/index.html b/customer_sequence/static/description/index.html new file mode 100644 index 000000000..a26cf9721 --- /dev/null +++ b/customer_sequence/static/description/index.html @@ -0,0 +1,290 @@ +
cybrosys-logo
+
+
+
+

Customer Sequence

+

Give unique code to each customer

+
+

Key Highlights

+
    +
  • Unique code for customers
  • +
+
+
+
+ +
+
+
+
+ +
+
+ +

Overview

+
+

+ Now it is very easy to identify your customers with unique code. This module gives coding to the customers as well as to the supplier.

+
+
+ +

Customer Sequence

+
+
    + +
  • + Unique code for customers +
  • + +
+
+ +
+
+

Screenshots

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

Suggested Products

+
+ +
+
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

Service Management

+

Keep track of services and invoice accordingly.

+
+
+
+
+ +
+
+
+
+

Need Any Help?

+
+

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

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + +
+
+
+ \ No newline at end of file diff --git a/customer_sequence/views/res_company.xml b/customer_sequence/views/res_company.xml new file mode 100644 index 000000000..72724c4a8 --- /dev/null +++ b/customer_sequence/views/res_company.xml @@ -0,0 +1,16 @@ + + + + + Company Sequence + res.company + + + + + + + + + + diff --git a/customer_sequence/views/res_partner_fom.xml b/customer_sequence/views/res_partner_fom.xml new file mode 100644 index 000000000..220fdd009 --- /dev/null +++ b/customer_sequence/views/res_partner_fom.xml @@ -0,0 +1,26 @@ + + + + + res.partner.form.inherit + res.partner + + + + + + + + + + res.partner.form.inherit + res.partner + + + + + + + + +