-
+
+
@@ -406,7 +409,8 @@
-
+
+
@@ -416,7 +420,8 @@
-
+
+
|
@@ -428,7 +433,8 @@
-
+
+
|
diff --git a/dynamic_accounts_report/wizard/ageing.py b/dynamic_accounts_report/wizard/ageing.py
index fd4675cec..31a4cc221 100644
--- a/dynamic_accounts_report/wizard/ageing.py
+++ b/dynamic_accounts_report/wizard/ageing.py
@@ -59,7 +59,6 @@ class AgeingView(models.TransientModel):
records = self._get_report_values(data)
currency = self._get_currency()
- print(records['Partners'])
return {
'name': "Partner Ageing",
'type': 'ir.actions.client',
diff --git a/dynamic_accounts_report/wizard/balance_sheet.py b/dynamic_accounts_report/wizard/balance_sheet.py
index 038e673e8..f60960eab 100644
--- a/dynamic_accounts_report/wizard/balance_sheet.py
+++ b/dynamic_accounts_report/wizard/balance_sheet.py
@@ -111,10 +111,8 @@ class BalanceSheetView(models.TransientModel):
'lang': 'en_US'}}
account_lines = self.get_account_lines(new_data)
- print("account_lines",account_lines)
report_lines = self.view_report_pdf(account_lines, new_data)[
'report_lines']
- print("report_lines",report_lines)
move_line_accounts = []
move_lines_dict = {}
diff --git a/dynamic_accounts_report/wizard/balance_sheet_config.py b/dynamic_accounts_report/wizard/balance_sheet_config.py
index 31e809656..1c3ccbcdf 100644
--- a/dynamic_accounts_report/wizard/balance_sheet_config.py
+++ b/dynamic_accounts_report/wizard/balance_sheet_config.py
@@ -94,7 +94,6 @@ class BalanceSheet(models.TransientModel):
res = {}
fields = ['credit', 'debit', 'balance']
- print("reportssssssss",reports)
for report in reports:
if report.id in res:
continue
@@ -128,7 +127,6 @@ class BalanceSheet(models.TransientModel):
elif report.type == 'sum':
# it's the sum of the children of this account.report
res2 = self._compute_report_balance(report.children_ids)
- print(fields,"ffff")
for key, value in res2.items():
for field in fields:
res[report.id][field] += value[field]
@@ -196,7 +194,6 @@ class BalanceSheet(models.TransientModel):
# used to display the details of the
# financial report, so it's not needed here.
continue
- print("get_account:",res[report.id])
if res[report.id].get('account'):
sub_lines = []
for account_id, value \
@@ -247,7 +244,6 @@ class BalanceSheet(models.TransientModel):
flag = True
if flag:
sub_lines.append(vals)
- print("sub_lines",sub_lines)
lines += sorted(sub_lines,
key=lambda sub_line: sub_line['name'])
return lines
diff --git a/dynamic_accounts_report/wizard/general_ledger.py b/dynamic_accounts_report/wizard/general_ledger.py
index 1dbbf48fa..c481377c7 100644
--- a/dynamic_accounts_report/wizard/general_ledger.py
+++ b/dynamic_accounts_report/wizard/general_ledger.py
@@ -46,7 +46,6 @@ class GeneralView(models.TransientModel):
@api.model
def view_report(self, option, title):
- print("view_report")
r = self.env['account.general.ledger'].search([('id', '=', option[0])])
self = r
new_title = ''
@@ -102,7 +101,6 @@ class GeneralView(models.TransientModel):
filters = self.get_filter(option)
records = self._get_report_values(data)
currency = self._get_currency()
- print('last return')
return {
'name': new_title,
'type': 'ir.actions.client',
@@ -286,14 +284,12 @@ class GeneralView(models.TransientModel):
return res
def _get_accounts(self, accounts, init_balance, display_account, data):
- print("function called..........")
cr = self.env.cr
MoveLine = self.env['account.move.line']
move_lines = {x: [] for x in accounts.ids}
# Prepare initial sql query and Get the initial move lines
if init_balance and data.get('date_from'):
- print("function called..2")
init_tables, init_where_clause, init_where_params = MoveLine.with_context(
date_from=self.env.context.get('date_from'), date_to=False,
initial_bal=True)._query_get()
@@ -345,7 +341,6 @@ class GeneralView(models.TransientModel):
params = tuple(init_where_params)
else:
params = (tuple(accounts.ids),) + tuple(init_where_params)
- # print("aaaaaaaaaaaaaaaaaaaaaaa", params)
cr.execute(sql, params)
for row in cr.dictfetchall():
row['m_id'] = row['account_id']
@@ -402,8 +397,6 @@ class GeneralView(models.TransientModel):
params = tuple(where_params)
else:
params = (tuple(accounts.ids),) + tuple(where_params)
- # print("sql", sql)
- # print("params", params)
cr.execute(sql, params)
account_res = cr.dictfetchall()
@@ -626,7 +619,6 @@ class GeneralView(models.TransientModel):
def get_dynamic_xlsx_report(self, data, response, report_data, dfr_data):
report_data_main = json.loads(report_data)
- print('report data: ', report_data_main)
output = io.BytesIO()
name_data = json.loads(dfr_data)
filters = json.loads(data)
@@ -721,8 +713,6 @@ class GeneralView(models.TransientModel):
sheet.write(row + 1, col + 7, line_data.get('debit'), txt)
sheet.write(row + 1, col + 8, line_data.get('credit'), txt)
sheet.write(row + 1, col + 9, line_data.get('balance'), txt)
- else:
- print('///////////',rec_data)
workbook.close()
output.seek(0)
diff --git a/dynamic_accounts_report/wizard/partner_leadger.py b/dynamic_accounts_report/wizard/partner_leadger.py
index bf5373973..51be6c70b 100644
--- a/dynamic_accounts_report/wizard/partner_leadger.py
+++ b/dynamic_accounts_report/wizard/partner_leadger.py
@@ -127,7 +127,6 @@ class PartnerView(models.TransientModel):
filters['category_list'] = data.get('category_list')
filters['account_type_list'] = data.get('account_type_list')
filters['target_move'] = data.get('target_move').capitalize()
- print(filters, "filters")
return filters
def get_filter_data(self, option):
@@ -163,8 +162,6 @@ class PartnerView(models.TransientModel):
o_company = j.company_id
accounts.append((j.id, j.name))
-
- print(r.reconciled, "rec")
filter_dict = {
'journal_ids': r.journal_ids.ids,
'account_ids': r.account_ids.ids,
@@ -294,7 +291,6 @@ class PartnerView(models.TransientModel):
if data.get('partners'):
WHERE += ' AND p.id IN %s' % str(
tuple(data.get('partners').ids) + tuple([0]))
- print(data, "data")
if data.get('reconciled') == 'unreconciled':
WHERE += ' AND l.full_reconcile_id is null AND' \
' l.balance != 0 AND a.reconcile is true'