diff --git a/total_payable_receivable/README.rst b/total_payable_receivable/README.rst new file mode 100644 index 000000000..842901db0 --- /dev/null +++ b/total_payable_receivable/README.rst @@ -0,0 +1,42 @@ +Total Payable & Receivable +============================== +This module will make total payable and receivable field in customer and vendor form + + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: Niyas Raphy @ cybrosys +(v13) Nimisha Murali @ cybrosys +(v14) Aneesh @ 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 +========== +.. 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/total_payable_receivable/__init__.py b/total_payable_receivable/__init__.py new file mode 100644 index 000000000..25f9d2af8 --- /dev/null +++ b/total_payable_receivable/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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/total_payable_receivable/__manifest__.py b/total_payable_receivable/__manifest__.py new file mode 100644 index 000000000..2f7322b49 --- /dev/null +++ b/total_payable_receivable/__manifest__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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': 'Payable And Receivable Amount', + 'summary': """Amount Payable & Receivable In Partner Form""", + 'version': '14.0.1.0.0', + 'description': """Amount Payable & Receivable In Partner Form""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'category': 'Accounting', + 'depends': ['base', 'sale', 'purchase'], + 'license': 'AGPL-3', + 'data': [ + 'views/total_payable_receivable_view.xml', + ], + 'demo': [], + 'images': ['static/description/banner.png'], + 'installable': True, + 'auto_install': False, +} diff --git a/total_payable_receivable/doc/RELEASE_NOTES.md b/total_payable_receivable/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..95b92b994 --- /dev/null +++ b/total_payable_receivable/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 05.10.2021 +#### Version 14.0.1.0.0 +#### ADD +Initial commit for Payable And Receivable Amount diff --git a/total_payable_receivable/models/__init__.py b/total_payable_receivable/models/__init__.py new file mode 100644 index 000000000..f699ce312 --- /dev/null +++ b/total_payable_receivable/models/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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 total_payable_receivable diff --git a/total_payable_receivable/models/total_payable_receivable.py b/total_payable_receivable/models/total_payable_receivable.py new file mode 100644 index 000000000..bd4d114c6 --- /dev/null +++ b/total_payable_receivable/models/total_payable_receivable.py @@ -0,0 +1,64 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2021-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 api, models, fields + + +class ResPartner(models.Model): + _name = 'res.partner' + _inherit = 'res.partner' + + partner_credit = fields.Monetary(compute='credit_debit_get',string='Total Receivable', help="Total amount this customer owes you.") + partner_debit = fields.Monetary(compute='credit_debit_get',string='Total Payable',help="Total amount you have to pay to this vendor.") + + @api.depends_context('force_company') + def credit_debit_get(self): + partner_debit = 0.0 + tables, where_clause, where_params = self.env['account.move.line'].with_context(state='posted', company_id=self.env.company.id)._query_get() + where_params = [tuple(self.ids)] + where_params + if where_clause: + where_clause = 'AND ' + where_clause + self._cr.execute("""SELECT account_move_line.partner_id, act.type, SUM(account_move_line.amount_residual) + FROM """ + tables + """ + LEFT JOIN account_account a ON (account_move_line.account_id=a.id) + LEFT JOIN account_account_type act ON (a.user_type_id=act.id) + WHERE act.type IN ('receivable','payable') + AND account_move_line.partner_id IN %s + AND account_move_line.reconciled IS FALSE + """ + where_clause + """ + GROUP BY account_move_line.partner_id, act.type + """, where_params) + treated = self.browse() + for pid, type, val in self._cr.fetchall(): + partner = self.browse(pid) + if type == 'receivable': + partner.partner_credit = val + partner.partner_debit = False + treated |= partner + elif type == 'payable': + partner.partner_debit = -val + partner_debit = partner.partner_debit + partner.partner_credit = False + treated |= partner + remaining = (self - treated) + self.partner_debit = partner_debit + remaining.partner_debit = False + remaining.partner_credit = False diff --git a/total_payable_receivable/static/description/assets/icons/check.png b/total_payable_receivable/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/check.png differ diff --git a/total_payable_receivable/static/description/assets/icons/chevron.png b/total_payable_receivable/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/chevron.png differ diff --git a/total_payable_receivable/static/description/assets/icons/cogs.png b/total_payable_receivable/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/cogs.png differ diff --git a/total_payable_receivable/static/description/assets/icons/consultation.png b/total_payable_receivable/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/consultation.png differ diff --git a/total_payable_receivable/static/description/assets/icons/ecom-black.png b/total_payable_receivable/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/ecom-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/education-black.png b/total_payable_receivable/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/education-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/hotel-black.png b/total_payable_receivable/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/hotel-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/license.png b/total_payable_receivable/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/license.png differ diff --git a/total_payable_receivable/static/description/assets/icons/lifebuoy.png b/total_payable_receivable/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/lifebuoy.png differ diff --git a/total_payable_receivable/static/description/assets/icons/logo.png b/total_payable_receivable/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/logo.png differ diff --git a/total_payable_receivable/static/description/assets/icons/manufacturing-black.png b/total_payable_receivable/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/manufacturing-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/pos-black.png b/total_payable_receivable/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/pos-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/puzzle.png b/total_payable_receivable/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/puzzle.png differ diff --git a/total_payable_receivable/static/description/assets/icons/restaurant-black.png b/total_payable_receivable/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/restaurant-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/service-black.png b/total_payable_receivable/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/service-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/trading-black.png b/total_payable_receivable/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/trading-black.png differ diff --git a/total_payable_receivable/static/description/assets/icons/training.png b/total_payable_receivable/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/training.png differ diff --git a/total_payable_receivable/static/description/assets/icons/update.png b/total_payable_receivable/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/update.png differ diff --git a/total_payable_receivable/static/description/assets/icons/user.png b/total_payable_receivable/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/user.png differ diff --git a/total_payable_receivable/static/description/assets/icons/wrench.png b/total_payable_receivable/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/total_payable_receivable/static/description/assets/icons/wrench.png differ diff --git a/total_payable_receivable/static/description/assets/modules/approval_image.png b/total_payable_receivable/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/total_payable_receivable/static/description/assets/modules/approval_image.png differ diff --git a/total_payable_receivable/static/description/assets/modules/budget_image.png b/total_payable_receivable/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/total_payable_receivable/static/description/assets/modules/budget_image.png differ diff --git a/total_payable_receivable/static/description/assets/modules/export_image.png b/total_payable_receivable/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/total_payable_receivable/static/description/assets/modules/export_image.png differ diff --git a/total_payable_receivable/static/description/assets/modules/magento_image.png b/total_payable_receivable/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/total_payable_receivable/static/description/assets/modules/magento_image.png differ diff --git a/total_payable_receivable/static/description/assets/modules/pos_image.png b/total_payable_receivable/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/total_payable_receivable/static/description/assets/modules/pos_image.png differ diff --git a/total_payable_receivable/static/description/assets/modules/shopify_image.png b/total_payable_receivable/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/total_payable_receivable/static/description/assets/modules/shopify_image.png differ diff --git a/total_payable_receivable/static/description/assets/screenshots/14.png b/total_payable_receivable/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..b150b30d0 Binary files /dev/null and b/total_payable_receivable/static/description/assets/screenshots/14.png differ diff --git a/total_payable_receivable/static/description/assets/screenshots/hero.png b/total_payable_receivable/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..f2e278f52 Binary files /dev/null and b/total_payable_receivable/static/description/assets/screenshots/hero.png differ diff --git a/total_payable_receivable/static/description/banner.png b/total_payable_receivable/static/description/banner.png new file mode 100644 index 000000000..340a713a4 Binary files /dev/null and b/total_payable_receivable/static/description/banner.png differ diff --git a/total_payable_receivable/static/description/icon.png b/total_payable_receivable/static/description/icon.png new file mode 100644 index 000000000..234af7698 Binary files /dev/null and b/total_payable_receivable/static/description/icon.png differ diff --git a/total_payable_receivable/static/description/index.html b/total_payable_receivable/static/description/index.html new file mode 100644 index 000000000..f076f7bda --- /dev/null +++ b/total_payable_receivable/static/description/index.html @@ -0,0 +1,536 @@ + +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Payable And Receivable Amounts

+

+ It shows total payable & receivable amount in partner form +

+ +
+
+ +
+
+

+ Explore this module +

+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ Amount payable and receivable is shown in the partner form of each Customers and Vendors. +

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Amount payable and receivable is shown in the partner form.

+ +
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ Partner Form

+

+ Screenshot of the partner form is shown below. The fields 'Total Payable' and 'Total Receivable' is inside the Sales & Purchase tab under the section Sales

+ +
+ +
+ + +
+
+

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/total_payable_receivable/views/total_payable_receivable_view.xml b/total_payable_receivable/views/total_payable_receivable_view.xml new file mode 100644 index 000000000..06a933782 --- /dev/null +++ b/total_payable_receivable/views/total_payable_receivable_view.xml @@ -0,0 +1,16 @@ + + + + + res.partner + res.partner + + + + + + + + + +