diff --git a/filter_aged_partners/README.rst b/filter_aged_partners/README.rst new file mode 100644 index 000000000..42bd4f6cb --- /dev/null +++ b/filter_aged_partners/README.rst @@ -0,0 +1,39 @@ +Aged Partner Balance with Partner Filter v10 +============================================ + +Aged Partner report with Partner Filter +You can generate aged partner report from wizard with partner filter + +Depends +======= +[account] addon Odoo + +Tech +==== +* [Python] - Models +* [XML] - Odoo views + +Installation +============ +- www.odoo.com/documentation/10.0/setup/install.html +- Install our custom addon + +License +======= +GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (LGPLv3) +(http://www.gnu.org/licenses/agpl.html) + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Authors +------- +* Sreejith P + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. diff --git a/filter_aged_partners/__init__.py b/filter_aged_partners/__init__.py index 0f7cb6b22..a0fdc10fe 100644 --- a/filter_aged_partners/__init__.py +++ b/filter_aged_partners/__init__.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -import models \ No newline at end of file +from . import models diff --git a/filter_aged_partners/__manifest__.py b/filter_aged_partners/__manifest__.py index 3489cd7f9..ee11e2c92 100644 --- a/filter_aged_partners/__manifest__.py +++ b/filter_aged_partners/__manifest__.py @@ -1,17 +1,39 @@ # -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Sreejith P() +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### { - 'name': 'Aged partner filter', - 'summary': "Aged partners filtered pdf reports", - 'version': '10.0.1.0', - 'author': 'Cybrosys Technologies', - 'website': "http://www.cybrosys.com", + 'name': 'Aged Partner Balance with Partner Filter', + 'version': '10.0.1.0.0', + 'summary': """Partner Wise on Aged Partner Balance""", + 'category': 'Accounting', + 'author': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', - "category": "Accounts", - 'depends': ['base', 'account', 'sale'], - 'data': ['views/filter_aged_partners.xml', - ], - 'license': 'LGPL-3', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'account'], + 'data': ['views/filter_aged_partners.xml'], + 'demo': [], 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', 'installable': True, - 'application': True, + 'auto_install': False, + 'application': False, } diff --git a/filter_aged_partners/models/__init__.py b/filter_aged_partners/models/__init__.py index 82037a7d6..3701a2f07 100644 --- a/filter_aged_partners/models/__init__.py +++ b/filter_aged_partners/models/__init__.py @@ -1 +1,2 @@ -import filter_aged_partners \ No newline at end of file +# -*- coding: utf-8 -*- +from . import filter_aged_partners diff --git a/filter_aged_partners/models/filter_aged_partners.py b/filter_aged_partners/models/filter_aged_partners.py index b1270ca74..13b7785e7 100644 --- a/filter_aged_partners/models/filter_aged_partners.py +++ b/filter_aged_partners/models/filter_aged_partners.py @@ -1,10 +1,11 @@ # -*- coding: utf-8 -*- import time -from odoo.tools import float_is_zero from datetime import datetime from dateutil.relativedelta import relativedelta -from odoo import fields, models, _ + +from odoo import fields, models, _ from odoo.exceptions import UserError +from odoo.tools import float_is_zero class FilterAgedPartner(models.TransientModel): @@ -13,7 +14,6 @@ class FilterAgedPartner(models.TransientModel): customer = fields.Many2many('res.partner', 'name', string='Customers') def _print_report(self, data): - # data['form']=super(FilterAgedPartner, self)._print_report(data) res = {} data = self.pre_print_report(data) data['form'].update(self.read(['period_length'])[0]) @@ -36,7 +36,6 @@ class FilterAgedPartner(models.TransientModel): start = stop - relativedelta(days=1) data['form'].update(res) data['form'].update({'customer': self.customer.ids}) - # data=super(FilterAgedPartner, self)._print_report(data) return self.env['report'].with_context(landscape=True).get_action(self, 'account.report_agedpartnerbalance', data=data) @@ -86,15 +85,10 @@ class FilterAgedCustomer(models .AbstractModel): ORDER BY UPPER(res_partner.name)''' cr.execute(query, arg_list) partners = cr.dictfetchall() - print 'filtered', partners - #-------------filter--------------# if customer: for ptnr in partners[:]: - print customer - print 'm', ptnr['partner_id'] if ptnr['partner_id'] not in customer: partners.remove(ptnr) - #---------------------------------# for i in range(7): total.append(0) @@ -235,7 +229,6 @@ class FilterAgedCustomer(models .AbstractModel): return res, total, lines def render_html(self, docids, data=None): - print 'mymodule' if not data.get('form') or not self.env.context.get('active_model') or not self.env.context.get('active_id'): raise UserError(_("Form content is missing, this report cannot be printed.")) diff --git a/filter_aged_partners/static/description/banner.jpg b/filter_aged_partners/static/description/banner.jpg index cad4d04ac..0db23975e 100644 Binary files a/filter_aged_partners/static/description/banner.jpg and b/filter_aged_partners/static/description/banner.jpg differ diff --git a/filter_aged_partners/static/description/icon.png b/filter_aged_partners/static/description/icon.png index b1256ef4c..a4633bb75 100644 Binary files a/filter_aged_partners/static/description/icon.png and b/filter_aged_partners/static/description/icon.png differ diff --git a/filter_aged_partners/static/description/index.html b/filter_aged_partners/static/description/index.html index ed94ae00e..c6a24f93b 100644 --- a/filter_aged_partners/static/description/index.html +++ b/filter_aged_partners/static/description/index.html @@ -1,8 +1,25 @@ +
+
+

Aged Partner report with Partner Filter

+

+

Cybrosys Technologies

+
+
+
+ Use Partner Filtration on Aged Partner Balance.
+
+
+
-

Aged Partner report with Partner Filter

-

Cybrosys Techno Solutions - www.cybrosys.com

+
+
+

Overview

+

+ This Cybrosys's module allows you to easily check Partners Aging, Currently we can't take individual aging report. By using this modules we can take aging report of one or more customers. +

+
+
-
You can generate aged partner report from wizard with partner filter
@@ -18,13 +35,12 @@
-
This will open partner ledger report wizard with the selected partner.
-
You can add or remove partner from wizard in case of fault selection
- -
- - -
+
This will open partner ledger report wizard with the selected partner.
+
You can add or remove partner from wizard in case of fault selection
+ + + +
@@ -33,7 +49,6 @@
-
@@ -61,4 +76,3 @@
- diff --git a/filter_aged_partners/views/filter_aged_partners.xml b/filter_aged_partners/views/filter_aged_partners.xml index c0336c9c5..63e66f4a7 100644 --- a/filter_aged_partners/views/filter_aged_partners.xml +++ b/filter_aged_partners/views/filter_aged_partners.xml @@ -1,16 +1,15 @@ - + partner.filter.form account.aged.trial.balance - + - - \ No newline at end of file +