Browse Source

Aug 30: [FIX] Bug Fixed 'dynamic_accounts_report'

pull/332/merge
Cybrosys Technologies 8 months ago
parent
commit
060ee62032
  1. 1512
      dynamic_accounts_report/i18n/zh_CN.po
  2. 1
      dynamic_accounts_report/static/src/js/financial_reports.js
  3. 3
      dynamic_accounts_report/static/src/xml/ageing.xml
  4. 1
      dynamic_accounts_report/wizard/balance_sheet.py
  5. 2
      dynamic_accounts_report/wizard/general_ledger.py

1512
dynamic_accounts_report/i18n/zh_CN.po

File diff suppressed because it is too large

1
dynamic_accounts_report/static/src/js/financial_reports.js

@ -167,7 +167,6 @@ odoo.define('dynamic_accounts_report.financial_reports', function(require) {
[self.wizard_id], action_title, self.searchModel.config.context.lang
],
}).then(function(data) {
console.log("dddd", data)
var action = {
'type': 'ir.actions.report',
'report_type': 'qweb-pdf',

3
dynamic_accounts_report/static/src/xml/ageing.xml

@ -282,8 +282,7 @@
<div role="separator" class="dropdown-divider"></div>
<option value="customer">Receivable Accounts</option>
<option value="supplier">Payable Accounts</option>
<option value="customer_supplier">Receivable and
Payable Accounts
<option value="customer_supplier">Receivable and Payable Accounts
</option>
</select>
<span id="account_res"></span>

1
dynamic_accounts_report/wizard/balance_sheet.py

@ -93,7 +93,6 @@ class BalanceSheetView(models.TransientModel):
account_report_id = self.env['account.financial.report'].with_context(
lang=lang).search([
('name', 'ilike', tag_upd)])
new_data = {'id': self.id, 'date_from': False,
'enable_filter': True,
'debit_credit': True,

2
dynamic_accounts_report/wizard/general_ledger.py

@ -569,7 +569,6 @@ class GeneralView(models.TransientModel):
# Get move lines base on sql query and Calculate the total balance of
# move lines
# print(new_final_filter)
sql = ('''SELECT DISTINCT ON (l.id) l.id AS lid,m.id AS move_id, l.account_id AS account_id,
l.date AS ldate, j.code AS lcode, l.currency_id, l.amount_currency,
l.ref AS lref, l.name AS lname, COALESCE(l.debit,0) AS debit,
@ -591,7 +590,6 @@ class GeneralView(models.TransientModel):
l.ref, l.name, m.name, c.symbol, c.position, p.name, anl.keys''')
params = tuple(where_params)
# print('new_final_filter', sql, params)
cr.execute(sql, params)
account_ress = cr.dictfetchall()
i = 0

Loading…
Cancel
Save