Browse Source
Merge pull request #554 from Eficent/11.0-imp-show-inactive-partners
[11.0][IMP] account_financial_report: show inactive partners in wizard
pull/566/head
Jordi Ballester Alomar
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
8 additions and
4 deletions
-
account_financial_report/wizard/aged_partner_balance_wizard.py
-
account_financial_report/wizard/general_ledger_wizard.py
-
account_financial_report/wizard/open_items_wizard.py
-
account_financial_report/wizard/trial_balance_wizard.py
|
|
@ -53,7 +53,8 @@ class AgedPartnerBalanceWizard(models.TransientModel): |
|
|
|
self.account_ids = self.account_ids.filtered( |
|
|
|
lambda a: a.company_id == self.company_id) |
|
|
|
res = {'domain': {'account_ids': [], |
|
|
|
'partner_ids': []}} |
|
|
|
'partner_ids': ['|', ('active', '=', False), |
|
|
|
('active', '=', True)]}} |
|
|
|
if not self.company_id: |
|
|
|
return res |
|
|
|
else: |
|
|
|
|
|
@ -154,7 +154,8 @@ class GeneralLedgerReportWizard(models.TransientModel): |
|
|
|
self.cost_center_ids = self.cost_center_ids.filtered( |
|
|
|
lambda c: c.company_id == self.company_id) |
|
|
|
res = {'domain': {'account_ids': [], |
|
|
|
'partner_ids': [], |
|
|
|
'partner_ids': ['|', ('active', '=', False), |
|
|
|
('active', '=', True)], |
|
|
|
'account_journal_ids': [], |
|
|
|
'cost_center_ids': [], |
|
|
|
'date_range_id': [] |
|
|
|
|
|
@ -84,7 +84,8 @@ class OpenItemsReportWizard(models.TransientModel): |
|
|
|
self.account_ids = self.account_ids.filtered( |
|
|
|
lambda a: a.company_id == self.company_id) |
|
|
|
res = {'domain': {'account_ids': [], |
|
|
|
'partner_ids': []}} |
|
|
|
'partner_ids': ['|', ('active', '=', False), |
|
|
|
('active', '=', True)]}} |
|
|
|
if not self.company_id: |
|
|
|
return res |
|
|
|
else: |
|
|
|
|
|
@ -127,7 +127,8 @@ class TrialBalanceReportWizard(models.TransientModel): |
|
|
|
self.account_ids = self.account_ids.filtered( |
|
|
|
lambda a: a.company_id == self.company_id) |
|
|
|
res = {'domain': {'account_ids': [], |
|
|
|
'partner_ids': [], |
|
|
|
'partner_ids': ['|', ('active', '=', False), |
|
|
|
('active', '=', True)], |
|
|
|
'date_range_id': [], |
|
|
|
'journal_ids': [], |
|
|
|
} |
|
|
|