(self, account_template)
return self.env["account.account"].browse(account_id or [])
Return company account that match the given account template.
Return company account that match the given account template.
Return company account that match the given account template .
def get_account_from_template(self, account_template):
        """Return company account that match the given account template."""
        self.ensure_one()
        account_id = []
        if account_template:
            account_id = self._get_account_id_from_account_template(
                account_template, self
            )
        return self.env["account.account"].browse(account_id or [])
def get_account_from_template ( self , account_template ) : self . ensure_one ( ) account_id = [ ] if account_template : account_id = self . _get_account_id_from_account_template ( account_template , self ) return self . env [ "account.account" ] . browse ( account_id or [ ] )