Browse Source

[ADD] hide contacts on partner

pull/512/head
Iryna Vushnevska 6 years ago
committed by Iryna Vyshnevska
parent
commit
f45d2ee748
  1. 4
      account_financial_report/wizard/aged_partner_balance_wizard.py
  2. 4
      account_financial_report/wizard/general_ledger_wizard.py
  3. 4
      account_financial_report/wizard/open_items_wizard.py
  4. 4
      account_financial_report/wizard/trial_balance_wizard.py

4
account_financial_report/wizard/aged_partner_balance_wizard.py

@ -60,8 +60,10 @@ class AgedPartnerBalanceWizard(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/wizard/general_ledger_wizard.py

@ -135,8 +135,10 @@ class GeneralLedgerReportWizard(models.TransientModel):
res['domain']['account_journal_ids'] += [ res['domain']['account_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/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/wizard/trial_balance_wizard.py

@ -138,8 +138,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