addons14/account_financial_report/wizard/general_ledger_wizard.py
def onchange_type_accounts_only(self):
        """Handle receivable/payable accounts only change."""
        if self.receivable_accounts_only or self.payable_accounts_only:
            domain = [("company_id", "=", self.company_id.id)]
            if self.receivable_accounts_only and self.payable_accounts_only:
                domain += [("internal_type", "in", ("receivable", "payable"))]
            elif self.receivable_accounts_only:
                domain += [("internal_type", "=", "receivable")]
            elif self.payable_accounts_only:
                domain += [("internal_type", "=", "payable")]
            self.account_ids = self.env["account.account"].search(domain)
        else:
            self.account_ids = None
Handle receivable/payable accounts only change.
Handle receivable/payable accounts only change.
Handle receivable / payable accounts only change .
def onchange_type_accounts_only(self):
        if self.receivable_accounts_only or self.payable_accounts_only:
            domain = [("company_id", "=", self.company_id.id)]
            if self.receivable_accounts_only and self.payable_accounts_only:
                domain += [("internal_type", "in", ("receivable", "payable"))]
            elif self.receivable_accounts_only:
                domain += [("internal_type", "=", "receivable")]
            elif self.payable_accounts_only:
                domain += [("internal_type", "=", "payable")]
            self.account_ids = self.env["account.account"].search(domain)
        else:
            self.account_ids = None
def onchange_type_accounts_only ( self ) : if self . receivable_accounts_only or self . payable_accounts_only : domain = [ ( "company_id" , "=" , self . company_id . id ) ] if self . receivable_accounts_only and self . payable_accounts_only : domain += [ ( "internal_type" , "in" , ( "receivable" , "payable" ) ) ] elif self . receivable_accounts_only : domain += [ ( "internal_type" , "=" , "receivable" ) ] elif self . payable_accounts_only : domain += [ ( "internal_type" , "=" , "payable" ) ] self . account_ids = self . env [ "account.account" ] . search ( domain ) else : self . account_ids = None
Handle receivable/payable accounts only change.
Handle receivable / payable accounts only change .
"""Handle receivable/payable accounts only change."""
self