Browse Source
Merge pull request #502 from i-vyshnevska/10-imp-account-financial-report-qweb-partner-filter
[10.0][IMP] account_financial_report_qweb : filter for partner
pull/518/head
Frédéric Clementi
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
14 additions and
4 deletions
-
account_financial_report_qweb/wizard/aged_partner_balance_wizard.py
-
account_financial_report_qweb/wizard/general_ledger_wizard.py
-
account_financial_report_qweb/wizard/open_items_wizard.py
-
account_financial_report_qweb/wizard/trial_balance_wizard.py
|
|
@ -60,8 +60,11 @@ class AgedPartnerBalance(models.TransientModel): |
|
|
|
res['domain']['account_ids'] += [ |
|
|
|
('company_id', '=', self.company_id.id)] |
|
|
|
res['domain']['partner_ids'] += [ |
|
|
|
'&', |
|
|
|
'|', ('company_id', '=', self.company_id.id), |
|
|
|
('company_id', '=', False)] |
|
|
|
('company_id', '=', False), |
|
|
|
('parent_id', '=', False) |
|
|
|
] |
|
|
|
return res |
|
|
|
|
|
|
|
@api.onchange('receivable_accounts_only', 'payable_accounts_only') |
|
|
|
|
|
@ -132,8 +132,11 @@ class GeneralLedgerReportWizard(models.TransientModel): |
|
|
|
res['domain']['journal_ids'] += [ |
|
|
|
('company_id', '=', self.company_id.id)] |
|
|
|
res['domain']['partner_ids'] += [ |
|
|
|
'&', |
|
|
|
'|', ('company_id', '=', self.company_id.id), |
|
|
|
('company_id', '=', False)] |
|
|
|
('company_id', '=', False), |
|
|
|
('parent_id', '=', False) |
|
|
|
] |
|
|
|
res['domain']['cost_center_ids'] += [ |
|
|
|
('company_id', '=', self.company_id.id)] |
|
|
|
res['domain']['date_range_id'] += [ |
|
|
|
|
|
@ -73,8 +73,10 @@ class OpenItemsReportWizard(models.TransientModel): |
|
|
|
res['domain']['account_ids'] += [ |
|
|
|
('company_id', '=', self.company_id.id)] |
|
|
|
res['domain']['partner_ids'] += [ |
|
|
|
'&', |
|
|
|
'|', ('company_id', '=', self.company_id.id), |
|
|
|
('company_id', '=', False)] |
|
|
|
('company_id', '=', False), |
|
|
|
('parent_id', '=', False)] |
|
|
|
return res |
|
|
|
|
|
|
|
@api.onchange('receivable_accounts_only', 'payable_accounts_only') |
|
|
|
|
|
@ -137,8 +137,10 @@ class TrialBalanceReportWizard(models.TransientModel): |
|
|
|
res['domain']['account_ids'] += [ |
|
|
|
('company_id', '=', self.company_id.id)] |
|
|
|
res['domain']['partner_ids'] += [ |
|
|
|
'&', |
|
|
|
'|', ('company_id', '=', self.company_id.id), |
|
|
|
('company_id', '=', False)] |
|
|
|
('company_id', '=', False), |
|
|
|
('parent_id', '=', False)] |
|
|
|
res['domain']['date_range_id'] += [ |
|
|
|
'|', ('company_id', '=', self.company_id.id), |
|
|
|
('company_id', '=', False)] |
|
|
|