(self)
return super(L10nEsAeatMod303Report, self).button_confirm()
Check records
Check records
Check records
def button_confirm(self):
        """Check records"""
        msg = ""
        for mod303 in self:
            if mod303.result_type == "D" and not mod303.partner_bank_id:
                msg = _("Select an account for receiving the money")
        if msg:
            raise exceptions.Warning(msg)
        return super(L10nEsAeatMod303Report, self).button_confirm()
def button_confirm ( self ) : msg = "" for mod303 in self : if mod303 . result_type == "D" and not mod303 . partner_bank_id : msg = _ ( "Select an account for receiving the money" ) if msg : raise exceptions . Warning ( msg ) return super ( L10nEsAeatMod303Report , self ) . button_confirm ( )