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
parent
commit
c3be84c91c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      account_financial_report_qweb/wizard/aged_partner_balance_wizard.py
  2. 5
      account_financial_report_qweb/wizard/general_ledger_wizard.py
  3. 4
      account_financial_report_qweb/wizard/open_items_wizard.py
  4. 4
      account_financial_report_qweb/wizard/trial_balance_wizard.py

5
account_financial_report_qweb/wizard/aged_partner_balance_wizard.py

@ -60,8 +60,11 @@ class AgedPartnerBalance(models.TransientModel):
res['domain']['account_ids'] += [ res['domain']['account_ids'] += [
('company_id', '=', self.company_id.id)] ('company_id', '=', self.company_id.id)]
res['domain']['partner_ids'] += [ res['domain']['partner_ids'] += [
'&',
'|', ('company_id', '=', self.company_id.id), '|', ('company_id', '=', self.company_id.id),
('company_id', '=', False)]
('company_id', '=', False),
('parent_id', '=', False)
]
return res return res
@api.onchange('receivable_accounts_only', 'payable_accounts_only') @api.onchange('receivable_accounts_only', 'payable_accounts_only')

5
account_financial_report_qweb/wizard/general_ledger_wizard.py

@ -132,8 +132,11 @@ class GeneralLedgerReportWizard(models.TransientModel):
res['domain']['journal_ids'] += [ res['domain']['journal_ids'] += [
('company_id', '=', self.company_id.id)] ('company_id', '=', self.company_id.id)]
res['domain']['partner_ids'] += [ res['domain']['partner_ids'] += [
'&',
'|', ('company_id', '=', self.company_id.id), '|', ('company_id', '=', self.company_id.id),
('company_id', '=', False)]
('company_id', '=', False),
('parent_id', '=', False)
]
res['domain']['cost_center_ids'] += [ res['domain']['cost_center_ids'] += [
('company_id', '=', self.company_id.id)] ('company_id', '=', self.company_id.id)]
res['domain']['date_range_id'] += [ res['domain']['date_range_id'] += [

4
account_financial_report_qweb/wizard/open_items_wizard.py

@ -73,8 +73,10 @@ class OpenItemsReportWizard(models.TransientModel):
res['domain']['account_ids'] += [ res['domain']['account_ids'] += [
('company_id', '=', self.company_id.id)] ('company_id', '=', self.company_id.id)]
res['domain']['partner_ids'] += [ res['domain']['partner_ids'] += [
'&',
'|', ('company_id', '=', self.company_id.id), '|', ('company_id', '=', self.company_id.id),
('company_id', '=', False)]
('company_id', '=', False),
('parent_id', '=', False)]
return res return res
@api.onchange('receivable_accounts_only', 'payable_accounts_only') @api.onchange('receivable_accounts_only', 'payable_accounts_only')

4
account_financial_report_qweb/wizard/trial_balance_wizard.py

@ -137,8 +137,10 @@ class TrialBalanceReportWizard(models.TransientModel):
res['domain']['account_ids'] += [ res['domain']['account_ids'] += [
('company_id', '=', self.company_id.id)] ('company_id', '=', self.company_id.id)]
res['domain']['partner_ids'] += [ res['domain']['partner_ids'] += [
'&',
'|', ('company_id', '=', self.company_id.id), '|', ('company_id', '=', self.company_id.id),
('company_id', '=', False)]
('company_id', '=', False),
('parent_id', '=', False)]
res['domain']['date_range_id'] += [ res['domain']['date_range_id'] += [
'|', ('company_id', '=', self.company_id.id), '|', ('company_id', '=', self.company_id.id),
('company_id', '=', False)] ('company_id', '=', False)]

Loading…
Cancel
Save