Browse Source
Merge pull request #519 from akretion/10-report_qweb_partner_usability
[10.0] account_financial_report_qweb: usability improvement on onchange_partner_ids
pull/527/head
Alexis de Lattre
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
3 deletions
-
account_financial_report_qweb/wizard/general_ledger_wizard.py
|
@ -215,10 +215,11 @@ class GeneralLedgerReportWizard(models.TransientModel): |
|
|
@api.onchange('partner_ids') |
|
|
@api.onchange('partner_ids') |
|
|
def onchange_partner_ids(self): |
|
|
def onchange_partner_ids(self): |
|
|
"""Handle partners change.""" |
|
|
"""Handle partners change.""" |
|
|
if self.partner_ids: |
|
|
|
|
|
|
|
|
if ( |
|
|
|
|
|
self.partner_ids and |
|
|
|
|
|
not self.receivable_accounts_only and |
|
|
|
|
|
not self.payable_accounts_only): |
|
|
self.receivable_accounts_only = self.payable_accounts_only = True |
|
|
self.receivable_accounts_only = self.payable_accounts_only = True |
|
|
else: |
|
|
|
|
|
self.receivable_accounts_only = self.payable_accounts_only = False |
|
|
|
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
|
def button_export_html(self): |
|
|
def button_export_html(self): |
|
|